コード例 #1
0
 public Item(Inventory p_inventory, int p_index)
 {
     m_item           = BaseItem.Get(m_itemRef);
     m_holder         = p_inventory.m_entity;
     m_inventory      = p_inventory;
     m_inventoryIndex = p_index;
 }
コード例 #2
0
 // this is mostly there just in case the ref needs to be updated
 public void UpdateItemRef(string p_itemRef)
 {
     m_itemRef = p_itemRef;
     m_item    = BaseItem.Get(m_itemRef);
 }