Bladeren bron

Change property order for SceneMetadata

Property order now matches serialization order.
habeebweeb 3 jaren geleden
bovenliggende
commit
d4c6d9c24d

+ 1 - 1
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/MPSScene.cs

@@ -57,7 +57,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
                 return;
             }
 
-            (_, Environment, _, NumberOfMaids) = SceneMetadata.ReadMetadata(binaryReader);
+            (_, Environment, NumberOfMaids, _) = SceneMetadata.ReadMetadata(binaryReader);
 
             Data = memoryStream.ToArray();
         }

+ 2 - 3
COM3D2.MeidoPhotoStudio.Plugin/MeidoPhotoStudio/Serialization/SceneMetadata.cs

@@ -6,9 +6,8 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
     {
         public short Version { get; init; }
         public bool Environment { get; init; }
-        public bool MMConverted { get; init; }
         public int MaidCount { get; init; }
-
+        public bool MMConverted { get; init; }
 
         public void WriteMetadata(BinaryWriter writer)
         {
@@ -30,7 +29,7 @@ namespace COM3D2.MeidoPhotoStudio.Plugin
         }
 
         public void Deconstruct(
-            out short version, out bool environment, out bool mmConverted, out int maidCount
+            out short version, out bool environment, out int maidCount, out bool mmConverted
         )
         {
             version = Version;