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