예제 #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="map"></param>
 /// <param name="cellId"></param>
 public PaddockDoor(MapInstance map, int cellId)
     : base(map, cellId)
 {
     m_paddock = map.Paddock;
     if (m_paddock == null)
         Logger.Info("null paddock on map " + map.Id);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="paddock"></param>
 public void ExchangePaddock(Paddock paddock)
 {
     CurrentAction = new GameMountStorageExchangeAction(this, paddock);
     StartAction(GameActionTypeEnum.EXCHANGE);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="character"></param>
 /// <param name="paddock"></param>
 public GameMountStorageExchangeAction(CharacterEntity character, Paddock paddock)
     : base(new MountStorageExchange(), character)
 {
 }
예제 #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="subArea"></param>
        /// <param name="id"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="data"></param>
        /// <param name="dataKey"></param>
        /// <param name="createTime"></param>
        public MapInstance(int subAreaId, int id, int x, int y, int width, int height, string data, string dataKey, string createTime, List<int> f0teamCells, List<int> f1teamCells, bool subInstance = false)
        {
            Id = id;
            SubAreaId = subAreaId;
            X = x;
            Y = y;
            Width = width;
            Height = height;
            Data = data;
            DataKey = dataKey;
            CreateTime = createTime;
            FightTeam0Cells = f0teamCells;
            FightTeam1Cells = f1teamCells;

            m_subInstance = subInstance;
            m_cells = new List<MapCell>();
            m_interactiveObjects = new List<InteractiveObject>();
            m_cellById = new Dictionary<int, MapCell>();
            m_entityById = new Dictionary<long, AbstractEntity>();
            m_entityByName = new Dictionary<string, AbstractEntity>();
            m_initialized = false;

            m_paddock = PaddockManager.Instance.GetByMapId(Id);

            FightManager = new FightManager(this);
            SubArea.AddUpdatable(this);
            SubArea.SafeAddHandler(base.Dispatch);
            SpawnManager.Instance.RegisterMap(this);
            Initialize();
        }