I’m trying to consolidate a couple of enums that are technically the same type, but have different values depending on the version of the file.
enum <ushort> CHUNKTYPE {
Any = 0x0,
Mesh = 0x1000,
Helper = 0x1001,
...
};
enum <uint> CHUNKTYPE {
Any = 0x0,
Mesh = 0xCCCC0000,
Helper = 0xCCCC0001,
...
};
I’m running into namespace issues where I can’t have the same const values in a file. And the size difference between the enums (one is ushort, other is uint) also causes problems.
I’d like to be able to use the enum as a type, but have the correct version load up dependent on the file version from the header. Any thoughts on how to approach this?