Skip to content

Commit 8f78b10

Browse files
committed
Remove serialization of GcResource to MXML files
1 parent dbaf038 commit 8f78b10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libMBIN/Source/Template/NMSTemplate.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,10 @@ public MXmlBase SerializeMXmlValue(Type fieldType, FieldInfo field, NMSAttribute
12431243
GcSeed seed = (GcSeed)value;
12441244
valueString = (seed.Seed == 0 && !seed.UseSeedValue) ? "NONE" : seed.Seed.ToString();
12451245
break;
1246+
case "GcResource":
1247+
// Don't return anything. We won't write this to MXML since the data is only used internally
1248+
// and isn't serialized by the game either.
1249+
return null;
12461250
case "Colour32":
12471251
// Handle the Colour32 explicitly since we want to write floats to the MXML, not ints.
12481252
Colour colour = new Colour((Colour32)value);

0 commit comments

Comments
 (0)