public void Load(byte[] _bytes) { if (this.LevelProperties != null) { MekaItem file = MekaItem.FromBytesEncrypted(_bytes); this.Properties = PropertySaver.Load(PropertyReflector.GetPropertyTypes(this.LevelProperties), file["Properties"].Children /*file.Contains("Info") ? file["Info"].Children : new List<MekaItem>()*/); } }
public void Apply(Entity _entity) => PropertyReflector.ApplyProperties(_entity, PropertySaver.Load(PropertyReflector.GetPropertyTypes <SavableAttribute>(_entity.GetType()), this.Properties));