anno-mods / FileDBReader

A command line tool for working with a proprietary bluebyte file compression used in Anno 2205 and 1800.
15 stars 4 forks source link

[serialization-rewrite] Rework of Handlers to not access the parent layer #21

Closed Shad0wlife closed 2 years ago

Shad0wlife commented 2 years ago

Handlers now get passed the object they handle instead of getting it from the parent object. This makes the creation of None-Tags for Reference Arrays simpler and enables Reference Arrays to simply call the Reference Handler for its items with the None-Tag Name.

This PR targets the serialization-rewrite branch!

Currently all unit tests work, but I feel like they have to be more comprehensive to cover all possible edge cases...