Map.cs 1.6 KB

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