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); }
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; }