示例#1
0
 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>()*/);
     }
 }
示例#2
0
 public void Apply(Entity _entity) => PropertyReflector.ApplyProperties(_entity, PropertySaver.Load(PropertyReflector.GetPropertyTypes <SavableAttribute>(_entity.GetType()), this.Properties));