Commit graph

5 commits

Author SHA1 Message Date
Gered 7850c468ea remove to_fixed_length(), replace usages with to_array()
i don't know how much better or worse either one is really, but i think
i like to_array() better overall. guessing to_array() is probably a bit
better overall, as it should only be one allocation in all cases
2021-05-20 13:37:29 -04:00
Gered c59d115aba add helper trait for reading fixed-length byte arrays
a minor thing, but helps turn this pattern into a nice 1-liner
2021-05-17 13:57:08 -04:00
Gered 2ceca5e673 some re-working of quest bin/dat reading/writing methods
get rid of the generalized traits that the read/write methods were
located in. now those methods are just located directly in the struct
impl itself

also cleaned up quest bin/dat errors

added validation checks in quest bin/dat reading
2021-05-16 19:10:06 -04:00
Gered 54a707f860 add to_array helper method 2021-05-16 16:31:14 -04:00
Gered 6c672f3d27 initial quest file bin/dat support
includes loading as compressed/uncompressed. no saving support yet.
2021-05-15 14:48:33 -04:00