-
Notifications
You must be signed in to change notification settings - Fork 16
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
impl enums for v662 #68
impl enums for v662 #68
Conversation
Something I noticed in general is that you are creating a new module/namespace quite often, that is unnecessary.. |
Also something to avoid in the future (only avoid this for stuff in the |
Also, it is not that important to match Mojang's names 1:1 since they can be quite confusing at times |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So urm, this review got quite big....
@@ -0,0 +1,10 @@ | |||
pub mod ActorBlockSyncMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for the additional mod
, you can just rename the type to ActorBlockSyncMessageId
:)
@@ -0,0 +1,14 @@ | |||
pub mod AnimatePacket { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for the additional mod
, you can just rename the type to AnimateAction
:)
@@ -0,0 +1,14 @@ | |||
pub mod AnimatePacket { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, it is confusing when you add an extra packet
in the file name, maybe change it to crates/proto/src/version/v662/enums/animate.rs
@@ -0,0 +1,8 @@ | |||
pub mod PositionTrackingDBClientRequestPacket { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be a good idea to remove the extra mod and just call the enum PositionTrackingDBClientRequestAction
@@ -0,0 +1,10 @@ | |||
pub mod PositionTracingDBServerBroadcastPacket { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be a good idea to remove the extra mod and just call the enum PositionTracingDBServerBroadcastAction
@@ -0,0 +1,10 @@ | |||
pub mod PositionTracingDBServerBroadcastPacket { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may make sense to also merge this with position_tracking_db_client_request_packet.rs
into one file called position_tracking_db.rs
@@ -0,0 +1,63 @@ | |||
pub mod MinecraftEventing { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't even know what to say here, this is a true mess and idk what happened
Just maybe remove the extra mod and get each enum a separate file.. I guess
@@ -0,0 +1,460 @@ | |||
pub mod Puv { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like quite a lot of module nesting... why dont you just call the enum LegacyLevelSoundEvent
.. adjust the file name and remove the other mods?
Yeah this was sort of temporary until I can find the other stuff in the namespace, types& packets etc. I added comments in the mod.rs file for all the modules in there so I can easily go back and change them later |
these workflows are annoying lmao, spamming my email every time I push |
@theaddonn I might leave this as is for now, planning on coming back later after implementing all the types and packets to clean everything up. |
Sounds good! |
3e258f1
into
bedrock-crustaceans:proto_rework
No description provided.