Exemple #1
0
 public static WorldStateMinItemCategory GetStateForItem(DBItemCategory item)
 {
     if (!statesList.ContainsKey(item))
     {
         statesList.Add(item, new WorldStateMinItemCategory(item));
     }
     return(statesList[item]);
 }
Exemple #2
0
 public WorldStateMinItemCategory(DBItemCategory category) : base("hasItemCat:" + category.name, 0, (from, to) => { return((int)to - (int)from); }) {
     this.category = category;
 }