Save enums as string in file

Vote for new features, or make your own requests here.
Post Reply

Save enums as string in file

Yes, I would like this feature
0
No votes
No, I would not like this feature
0
No votes
 
Total votes: 0

User avatar
Joel
Moodkie Staff
Posts: 5037
Joined: Wed Nov 07, 2012 10:32 pm

Save enums as string in file

Post 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 }
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply