Beispiel #1
0
        /// <summary>
        /// Adds pocket to inventory.
        /// </summary>
        /// <param name="inventoryPocket"></param>
        public void Add(InventoryPocket inventoryPocket)
        {
            if (_pockets.ContainsKey(inventoryPocket.Pocket))
            {
                Log.Warning("Replacing pocket '{0}' in '{1}'s inventory.", inventoryPocket.Pocket, _creature);
            }

            _pockets[inventoryPocket.Pocket] = inventoryPocket;
        }
		/// <summary>
		/// Adds pocket to inventory.
		/// </summary>
		/// <param name="inventoryPocket"></param>
		public void Add(InventoryPocket inventoryPocket)
		{
			if (_pockets.ContainsKey(inventoryPocket.Pocket))
				Log.Warning("Replacing pocket '{0}' in '{1}'s inventory.", inventoryPocket.Pocket, _creature);

			_pockets[inventoryPocket.Pocket] = inventoryPocket;
		}