Наследование: PersistentInventory
 /// <summary>
 /// 
 /// </summary>
 /// <param name="storage"></param>
 public void ExchangeStorage(StorageInventory storage)
 {
     CurrentAction = new GameStorageExchangeAction(this, storage);
     StartAction(GameActionTypeEnum.EXCHANGE);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="character"></param>
 /// <param name="storage"></param>
 public GameStorageExchangeAction(CharacterEntity character, StorageInventory storage, ExchangeTypeEnum type = ExchangeTypeEnum.EXCHANGE_STORAGE)
     : base(new StorageExchange(character, storage, type), character, null)
 {
 }
Пример #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="map"></param>
 /// <param name="cellId"></param>
 public TrashCan(MapInstance map, int cellId)
     : base(map, cellId)
 {
     m_storage = new StorageInventory();
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="character"></param>
 /// <param name="storage"></param>
 /// <param name="type"></param>
 public StorageExchange(CharacterEntity character, StorageInventory storage, ExchangeTypeEnum type = ExchangeTypeEnum.EXCHANGE_STORAGE)
     : base(type)
 {
     Character = character;
     Storage = storage;
 }