MBINCompiler
MBINCompiler copied to clipboard
Change enum ints/xxxValues() into proper C# enums
Right now enums inside templates are defined using ints and xxxValues() methods which give each enum value as a string, this works but it's pretty hacky and was mostly only done due to laziness :100: :100:
It gets messy when there's more than one field using the same enum, so you'd need two xxxValues() methods for them with the same values inside, if these were defined as proper C# enums instead then there'd be no need for the xxxValues() methods at all.
ATM there isn't support in the deserializer/xml serializer for C# Enums, but once that's added these enum ints can be changed over, could be a good task for anyone who wants to contribute.
On it :)