diff options
Diffstat (limited to 'azalea-protocol/src/packets/login/serverbound_hello_packet.rs')
| -rwxr-xr-x | azalea-protocol/src/packets/login/serverbound_hello_packet.rs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs b/azalea-protocol/src/packets/login/serverbound_hello_packet.rs deleted file mode 100755 index 51ff1830..00000000 --- a/azalea-protocol/src/packets/login/serverbound_hello_packet.rs +++ /dev/null @@ -1,30 +0,0 @@ -use azalea_buf::McBuf; -use azalea_protocol_macros::ServerboundLoginPacket; -use uuid::Uuid; - -#[derive(Clone, Debug, PartialEq, Eq, McBuf, ServerboundLoginPacket)] -pub struct ServerboundHelloPacket { - pub name: String, - pub profile_id: Uuid, -} - -#[cfg(test)] -mod tests { - use std::io::Cursor; - - use azalea_buf::{McBufReadable, McBufWritable}; - - use super::*; - - #[test] - fn test_read_write() { - let packet = ServerboundHelloPacket { - name: "test".to_string(), - profile_id: Uuid::nil(), - }; - let mut buf: Vec<u8> = Vec::new(); - packet.write_into(&mut buf).unwrap(); - let packet2 = ServerboundHelloPacket::read_from(&mut Cursor::new(&buf)).unwrap(); - assert_eq!(packet, packet2); - } -} |
