Map.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /** 抖音接口全局唯一调用凭据 **/
  14. public string AccessToken { get; set; }
  15. /** 地图id **/
  16. public int MapId { get; set; }
  17. /** 场景玩法类型 **/
  18. public int Type { get; set; }
  19. /** 场景配置 **/
  20. public MapConfig Prop { get; set; }
  21. /** 战斗服id **/
  22. public string BattleServerId { get; set; }
  23. /** 游戏服id **/
  24. public int LogicServerId { get; set; }
  25. /** 副本创建时间 **/
  26. public long createTime { get; set; }
  27. /** 场景里的角色(主播) **/
  28. public WNPlayer Player { get; set; }
  29. /** 场景里的单位玩家 [key:openId, value:单位玩家数据] **/
  30. public Dictionary<string, Struct.UnitPlayerData> UnitPlayers { get; set; }
  31. /** 总点赞数 **/
  32. public long TotalLikeNum { get; set; }
  33. /** 死亡的单位(塔) **/
  34. [StaticField]
  35. public List<int> DeadUnits = new List<int>();
  36. /** 游戏结束标记 **/
  37. [StaticField]
  38. public bool IsGameOver = false;
  39. }
  40. }