Page 1 of 1

Save enums as string in file

Posted: Mon Jun 12, 2023 8:43 am
by Joel
Status

Requested

Complexity

2/10

Description

An option to choose whether Easy Save stores enums as an integer (the current default) or a string in order to make them more readable in the save file.

Note that enums are currently stored as integers as it's more compact and they tend to be more resilient to changes. For example, renaming an enum value would invalidate the string data but not the int data. Reordering the values of an enum would invalidate the data but C# allows the int value to be assigned. I.e. enum MyEnum { MyVal2 = 2, MyVal1 = 1 }