Beispiel #1
0
 public SavedEntity(Bunch <FieldInfo> _fields, Entity _entity)
 {
     this.Identifier = _entity.Identifier;
     this.Properties = PropertySaver.Save(_fields.ToDictionary(item => item.Name, item => item.GetValue(_entity)));
 }
Beispiel #2
0
 public MekaItem Export() => new MekaItem("Properties", this.LevelProperties != null ? (PropertySaver.Save(this.IsInitialized ? this.PropertyEditor.GetProperties() : this.Properties)) : new List <MekaItem>());