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

Reduce the change of calling the wrong method in NetworkHandler by reducing access #72

Merged

Conversation

gungun974
Copy link
Contributor

This PR change two thing in NetworkHandler

  • In the current version, some method like setup() and recieveUniversalPacket() are only dedicated to be called in predefined mixin in Halplibe, since I can't make them private, I added a prefix with internal and add an @apiNote to inform the end user should not called them.

  • addNetworkMessage() is a method that should be private since this make confusion with the registerNetworkMessage which is the public one that the end user should use.

This PR fix this two mistakes.

…ernal` prefix and make some critical method private
@gungun974 gungun974 marked this pull request as ready for review March 2, 2025 14:19
@MartinSVK12 MartinSVK12 merged commit f7e557f into Turnip-Labs:7.3 Mar 2, 2025
2 checks passed
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.

2 participants