loldevs / libOL

Reference implementation for League of Legends spectator dump decoding. Basically abandoned.
MIT License
13 stars 3 forks source link

Chunk reading API #7

Open sathorn6 opened 10 years ago

sathorn6 commented 10 years ago

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?

strangeglyph commented 10 years ago

Sounds like an event-based system would be good here (function pointers yay)

lukegb commented 10 years ago
strangeglyph commented 10 years ago

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

lukegb commented 10 years ago

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.

toulouse commented 10 years ago

+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.

themasch commented 10 years ago

:+1: for events. everyone loves events!