Map.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. [StaticField]
  37. public bool IsGameOver = false;
  38. }
  39. }