diff options
| author | mat <github@matdoes.dev> | 2021-12-18 10:04:10 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2021-12-18 10:04:10 -0600 |
| commit | 8e3ba097b48543a85f2cf487d5db90add3f28bac (patch) | |
| tree | eb691675842ecaec0a8a561deb8cf5e2951c9d81 /azalea-protocol/src/packets/game/mod.rs | |
| parent | 498077e09f372ecd5c4f32f20363d7011f09e70a (diff) | |
| download | azalea-drasl-8e3ba097b48543a85f2cf487d5db90add3f28bac.tar.xz | |
start adding clientbound_login_packet
Diffstat (limited to 'azalea-protocol/src/packets/game/mod.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/mod.rs | 12 |
1 files changed, 7 insertions, 5 deletions
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<u8>) {} |
