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