Open sathorn6 opened 10 years ago
Sounds like an event-based system would be good here (function pointers yay)
Just raw layer sounds good, with the option to start the parse at a certain point in time. The second option is basically a fully-featured replay client, seems out of scope for libol
We should definitely have the former. The latter is something I'd like to have after the first is done - it's probably what most people will want, since being able to play forwards in time and see the state change without worrying about the underlying messages (which might change!) is useful.
+1 Emitting events Parsing this in a stateful way can be the job of something wrapping libOL, or libOL can add it later, but it's definitely more advanced usage suitable for a later iteration.
:+1: for events. everyone loves events!
I'm asking myself how the API to read chunks should look like. From my current understanding, they consist of messages like
So to make sense of these, you need a lot of game state, like which player is X, where is he, how much gold and what items does he currently have, which i think the lib should keep for you. But how do we expose this information back in a useful way?