示例#1
0
        private static EntityData ReadEntityData(GenericStructure structure)
        {
            var ret = new EntityData();

            foreach (var key in structure.GetPropertyKeys())
            {
                if (ExcludedKeys.Contains(key.ToLower()))
                {
                    continue;
                }
                ret.SetPropertyValue(key, structure[key]);
            }
            ret.Name  = structure["classname"];
            ret.Flags = structure.PropertyInteger("spawnflags");
            return(ret);
        }
示例#2
0
 private static EntityData ReadEntityData(GenericStructure structure)
 {
     var ret = new EntityData();
     foreach (var key in structure.GetPropertyKeys())
     {
         if (ExcludedKeys.Contains(key.ToLower())) continue;
         ret.SetPropertyValue(key, structure[key]);
     }
     ret.Name = structure["classname"];
     ret.Flags = structure.PropertyInteger("spawnflags");
     return ret;
 }