pmmp / BedrockProtocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP
GNU Lesser General Public License v3.0
138 stars 96 forks source link

Start using native enums #190

Open dktapps opened 1 year ago

dktapps commented 1 year ago

This will permit hardening validation of packets in many areas where it's currently impractical to do so, as well as improving type safety.

dktapps commented 8 months ago

This could be problematic for incomplete enums, making it difficult to test missing (unknown) values.