示例#1
0
 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);
 }
示例#2
0
 public ContainerObject(DBItem item, ObjectInventory inventory) : base(item, inventory)
 {
     m_numSlots = item.Template.ContainerSlots;
     Inventory  = new ContainerInventory(this);
 }