Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public bool HasAttr(ThingAttr attr)
 {
     return(MAttribs.ContainsKey(attr));
 }