TASmod
TASmod copied to clipboard
Refactor PlaybackSerialiser
Part 3 of my ongoing quest to refactor the mod.
While the first PR (#179) was hooking into the vanilla code,
the second PR (#200) was about storing the inputs and metadata in RAM.
In this PR I will tackle the task of storing all the inputs we recorded to the file.
Current
The current system is (as always) a hardcoded mess of stuff somewhat randomly put together...
Now with a bit more experience under my belt, I should be able to upgrade whatever I wrote 3 years ago...
TODO
CustomSerialisers
- [ ] Create a serialiser registry, so it's easy to create your own TASfile Syntax
- [ ] Create a base class that all serialisers need to extend from
- [ ] Convert the old serialiser to the new format
- [ ] Create new serialiser that supports the new VirtualInputFormat
- [ ] #183
- [ ] #184
PlaybackExtensions
- [ ] Add PlaybackExtensionRegistry
- [ ] Convert DesyncMonitor to extension
- [ ] Convert ControlBytes to extension