public ItemObject(DBItem item, ObjectInventory inventory) { m_guid = ObjectManager.NextGUID(); m_itemData = item; m_template = item.Template; if (m_itemData.ObjectId == 0) { DBManager.CreateDBObject(m_itemData); } m_containedIn = inventory; ObjectManager.AddWorldObject(this); }
public ContainerObject(DBItem item, ObjectInventory inventory) : base(item, inventory) { m_numSlots = item.Template.ContainerSlots; Inventory = new ContainerInventory(this); }