Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract log parsing to a own library #58

Open
ChillerDragon opened this issue Feb 29, 2024 · 0 comments
Open

Extract log parsing to a own library #58

ChillerDragon opened this issue Feb 29, 2024 · 0 comments

Comments

@ChillerDragon
Copy link
Member

ChillerDragon commented Feb 29, 2024

There should be one reusable library that abstracts away teeworlds log parsing. It should support multiple formats like ddnet, 0.6 and 0.7 and give one versioned interface for working with all of them. It should be sans io and well tested so it can be used for anything.

That could then also serve as a base for any kind of server modding not only how it is used in this repo.

The api should offer callbacks like:

on_message() -> every log as string
on_player_join() -> player info
on_unknown_message() -> same as on_message() but only if the parser doesn't know it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant