Implement enum/flag parser for struct generation#33
Implement enum/flag parser for struct generation#33MaxtorCoder wants to merge 15 commits intowowdev:masterfrom
Conversation
MaxtorCoder
commented
Mar 10, 2026
- Implement parsing and usage of new dbdf, dbde and dbdm formats in WoWDBDefs
- Add some basic tests
- Some minor optimizations when constructing rows
The ReadingTest has some usages on how the final syntax will look like
…tArrayEnumDefinitions Instead we merged it into GetEnumDefinition with a nullable array index parameter, also introduce `IsEnumOrFlagField` to check whether that field is a Flag or Enum field
|
There are issues loading various tables that don't have flags as a long (aka most) and it fails on converting/casting the values, so that'll need to be solved to actually use the underlying field type. We'll also need to add some documentation that explains what giving an enumprovider to DBCD does and that returning fields as enum types can lead to the issues that WTL for example has seen with default ToString() behavior changing, and as such it being completely optional with the only change being actual enum/flag types (and more ease around checking them). We also need to note somewhere that the enum/flag stuff from WoWDBDefs/DBDefsLib can be used through the DBCD provider(s) WITHOUT feeding it to the DBCD constructor, like how WTL uses it now. |