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

Rewrite netcode #320

Merged
merged 4 commits into from
Dec 11, 2021
Merged

Rewrite netcode #320

merged 4 commits into from
Dec 11, 2021

Conversation

serenibyss
Copy link
Member

Rewrite NetworkHandler and surrounding classes to have a consistent networking API and cleanup a lot of bad code

Copy link
Contributor

@Rongmario Rongmario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, some packets are a bit :concern: but at least its all on the new and cleaner packet system.

@NoArgsConstructor
public class PacketUIOpen implements IPacket {

private int uiFactoryId;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be a short. Since the registry only allows Short.MAX_VALUE!

@serenibyss serenibyss merged commit 4faa830 into master Dec 11, 2021
@serenibyss serenibyss deleted the net-rewrite branch December 11, 2021 22:02
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

Successfully merging this pull request may close these issues.

3 participants