Esempio n. 1
0
 public bool TryGetItemData(InventoryObjectType type, out MiscInventoryItemData data)
 {
     data = null;
     foreach (var kv in this.items)
     {
         if (kv.Value.Type() == type)
         {
             data = kv.Value;
             return(true);
         }
     }
     return(false);
 }
Esempio n. 2
0
 public bool TryGetItemData(string id, out MiscInventoryItemData data)
 {
     return(this.items.TryGetValue(id, out data));
 }