Aura.Channel.World.Inventory.CreatureInventory.PrepareBags C# (CSharp) 메소드

PrepareBags() 개인적인 메소드

Adds bag pocket to inventory and sets it for the item if item is a bag. Call before ItemNew, otherwise the bag won't open until relog.
private PrepareBags ( Item item ) : void
item Item
리턴 void
		private void PrepareBags(Item item)
		{
			if (!item.IsBag)
				return;

			if (item.Data.BagWidth == 0)
			{
				Send.ServerMessage(_creature, Localization.Get("Beware, shaped bags aren't supported yet."));
			}
			else if (!this.AddBagPocket(item))
			{
				Log.Debug("Failed to add linked pocket for bag.");
				// TODO: Handle somehow? Without linked pocket the bag
				//   won't open.
			}
		}