GothicKit / ZenKit

A re-implementation of file formats used by the early 2000's ZenGin
http://zk.gothickit.dev/
MIT License
44 stars 10 forks source link

[v1.1.0] Unified parse function for MDS files #10

Closed lmichaelis closed 1 year ago

lmichaelis commented 1 year ago

Currently there are two functions model_script::parse and model_script::parse_binary. Since we can detect whether we're dealing with a binary file or not by reading the first two bytes and checking whether the resulting uint16_t is in range of any of the chunk IDs, there should only be one parse function.