From 8e3ba097b48543a85f2cf487d5db90add3f28bac Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 18 Dec 2021 10:04:10 -0600 Subject: start adding clientbound_login_packet --- azalea-protocol/src/packets/game/mod.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'azalea-protocol/src/packets/game/mod.rs') diff --git a/azalea-protocol/src/packets/game/mod.rs b/azalea-protocol/src/packets/game/mod.rs index 0391a6b1..73f66c33 100644 --- a/azalea-protocol/src/packets/game/mod.rs +++ b/azalea-protocol/src/packets/game/mod.rs @@ -1,9 +1,9 @@ -use async_trait::async_trait; -use tokio::io::BufReader; - -use crate::connect::PacketFlow; +pub mod clientbound_login_packet; use super::ProtocolPacket; +use crate::connect::PacketFlow; +use async_trait::async_trait; +use tokio::io::BufReader; #[derive(Clone, Debug)] pub enum GamePacket @@ -13,7 +13,9 @@ where #[async_trait] impl ProtocolPacket for GamePacket { fn id(&self) -> u32 { - 0x00 + match self { + GamePacket::ClientboundLoginPacket(_packet) => 0x00, + } } fn write(&self, _buf: &mut Vec) {} -- cgit v1.2.3