Skip to content

Commit

Permalink
Add comment in gamepacket.rs for free game packet ids
Browse files Browse the repository at this point in the history
  • Loading branch information
theaddonn authored Jul 8, 2024
1 parent ffdc850 commit e0e5793
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proto/src/gamepacket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ impl GamePacket {

// Get the first 10 bits as the packet id
// Can never be more than a 16-bit integer due to being 10 bits big
// Gamepacket IDs through 200-299 are used for spin-offs, they are free to use for custom packets
let game_packet_id = game_packet_header & 0b0000_0011_1111_1111;

// Get the next 2 bits as the sub client sender id
Expand Down

0 comments on commit e0e5793

Please sign in to comment.