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

New packet format. #103

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft

New packet format. #103

wants to merge 2 commits into from

Conversation

LoneBoco
Copy link
Collaborator

@LoneBoco LoneBoco commented Jul 1, 2024

The existing gserver manually writes packets all over the place. This refactor changes how packets are structured to bring packet serialization code into one common location. Each packet will have a class that contains the contents of the packet and handles serialization/deserialization, so you can work with and pass the data around.

Fixed a bunch of compilation issues.
Moved the IsPacket concept to the sendPacket function to avoid breaking CRTP.
Added some code to call the serialize and deserialize function to test compilation errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

1 participant