public List <ThingType> FindThingTypeByAttr(ThingAttr attr, ThingCategory category) { List <ThingType> ret = new List <ThingType>(); foreach (ThingType typename in _mThingTypes[(int)category].Values) { if (typename.HasAttr(attr)) { ret.Add(typename); } } return(ret); }
public bool HasAttr(ThingAttr attr) { return(MAttribs.ContainsKey(attr)); }