TASmod icon indicating copy to clipboard operation
TASmod copied to clipboard

Refactor PlaybackSerialiser

Open ScribbleTAS opened this issue 10 months ago • 4 comments

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

ScribbleTAS avatar Apr 14 '24 12:04 ScribbleTAS