Map.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Collections.Generic;
  2. using Newtonsoft.Json.Linq;
  3. namespace ET.Server
  4. {
  5. /// <summary>
  6. /// 游戏场景实体
  7. /// </summary>
  8. [ChildOf(typeof(GameMapComponent))]
  9. public class Map: Entity, IAwake<JObject, WNPlayer>, IDestroy
  10. {
  11. /** 房间id **/
  12. public long RoomId { get; set; }
  13. /** 地图id **/
  14. public int MapId { get; set; }
  15. /** 场景玩法类型 **/
  16. public int Type { get; set; }
  17. /** 场景配置 **/
  18. public MapConfig Prop { get; set; }
  19. /** 战斗服id **/
  20. public string BattleServerId { get; set; }
  21. /** 游戏服id **/
  22. public int LogicServerId { get; set; }
  23. /** 副本创建时间 **/
  24. public long createTime { get; set; }
  25. /** 场景里的角色(主播) **/
  26. public WNPlayer Player { get; set; }
  27. /** 场景里的单位玩家 [key:openId, value:单位玩家数据] **/
  28. public Dictionary<string, Struct.UnitPlayerData> UnitPlayers { get; set; }
  29. /** 总点赞数 **/
  30. public long TotalLikeNum { get; set; }
  31. /** 配置数量达到次数 **/
  32. public long ConfigNum { get; set; }
  33. /** 死亡的单位(塔) **/
  34. public List<int> DeadUnits { get; set; }
  35. /** 死亡的单位玩家 **/
  36. public List<int> DeadUnitPlayer { get; set; }
  37. /** 游戏结束标记 **/
  38. [StaticField]
  39. public bool IsGameOver = false;
  40. /** 当前战场中心 **/
  41. public int CurBattleIndex = 0;
  42. }
  43. }