Update serializer for more types
This commit is contained in:
1 parent
a5110eb939
commit
1fed6dca5f
29 files changed
+157
-136
No files matched your search
@@ -1,8 +1,11 @@
|
||||
use pumpkin_macros::packet;
|
||||
|
||||
use crate::{
|
||||
bytebuf::{packet_id::Packet, ByteBuffer},
|
||||
ClientPacket, VarInt,
|
||||
};
|
||||
|
||||
#[packet(0x2B)]
|
||||
pub struct CLogin {
|
||||
entity_id: i32,
|
||||
is_hardcore: bool,
|
||||
@@ -78,10 +81,6 @@ impl CLogin {
|
||||
}
|
||||
}
|
||||
|
||||
impl Packet for CLogin {
|
||||
const PACKET_ID: VarInt = 0x2B;
|
||||
}
|
||||
|
||||
impl ClientPacket for CLogin {
|
||||
fn write(&self, bytebuf: &mut ByteBuffer) {
|
||||
bytebuf.put_i32(self.entity_id);
|
||||
|
||||
Reference in new issue
Block a user