SiegeEngineers / genie-rs

Rust libraries for reading/writing various Age of Empires I/II files.
https://docs.rs/genie
GNU General Public License v3.0
18 stars 9 forks source link

dat: do unit types better #31

Closed goto-bus-stop closed 4 years ago

goto-bus-stop commented 4 years ago

Instead of an enum that has differently sized values for every unit type, have a single UnitType struct with several optional attribute bags. This makes it easier to use I think (and certainly easier to implement).

Also moves a bunch of stuff out of the main exports into submodules because I find the genie-rec docs, where i did this accidentally, much easier to scan.