12345678910111213141516171819202122232425262728293031323334 |
- using System.Collections.Generic;
- using Newtonsoft.Json.Linq;
- namespace ET.Server
- {
- /// <summary>
- /// 游戏场景实体
- /// </summary>
- [ChildOf(typeof(GameMapComponent))]
- public class Map: Entity, IAwake<JObject>, IDestroy
- {
- /** 地图id **/
- public int MapId { get; set; }
- /** 场景玩法类型 **/
- public int Type { get; set; }
- /** 场景配置 **/
- public MapConfig Prop { get; set; }
- /** 战斗服id **/
- public string BattleServerId { get; set; }
- /** 游戏服id **/
- public int LogicServerId { get; set; }
- /** 副本创建时间 **/
- public long createTime { get; set; }
- /** 场景里的角色 **/
- [StaticField]
- public Dictionary<long, WNPlayer> Players = new Dictionary<long, WNPlayer>();
- /** 场景中单位玩家objId列表 **/
- public List<int> UnitObjIds { get; set; }
- /** 死亡的单位 **/
- [StaticField]
- public List<int> DeadUnits = new List<int>();
- }
- }
|