vE5li / korangar

A next-gen Ragnarok Online client
MIT License
147 stars 33 forks source link

Rework `FromBytes` and `ToBytes` to allow easier conversion both ways #77

Closed vE5li closed 5 months ago

vE5li commented 5 months ago

Previously, a lot of types could only be deserialized but not serialized. The goal is to make it easier to convert both ways, and to make instantiation of ToBytes types easier by deriving an associated new function that initializes fields that have a fixed value or a value that can be derived.