ori-community / wotw-rando-client

Game Client/Mod for the Ori and the Will of the Wisps Randomizer
https://wotw.orirando.com
Other
19 stars 15 forks source link

Serialize warp icons #332

Open SiriusAshling opened 1 year ago

SiriusAshling commented 1 year ago

Currently custom warp icons get reset on every seed load. This is a common point of errors for the unaware plando writer, who simply wants to add a warp icon and doesn't anticipate it disappearing on them. Currently any header or plando that wants to add a warp icon has to also manage a boolean for its state and reconstruct the icon on every load if needed. Since our serialization capabilities have improved with the work on stats and we can now store strings, we could simplify this greatly by serializing warp icons into our custom format, so any created warp icon will stay until it is manually removed again.