From 89c217731fe50be28136a3da5b4672ec76649ea6 Mon Sep 17 00:00:00 2001 From: Andy Date: Sat, 31 Aug 2019 02:38:53 -0300 Subject: [PATCH] added packets 0x1E8, 0x2E8 (BBChecksum and BBChecksumAck) --- src/packet/login.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/packet/login.rs b/src/packet/login.rs index e0c8730..3e880c7 100644 --- a/src/packet/login.rs +++ b/src/packet/login.rs @@ -193,6 +193,25 @@ impl RedirectClient { } } +#[pso_packet(0x1E8)] +pub struct BBChecksum { + pub flag: u32, +} + +#[pso_packet(0x2E8)] +pub struct BBChecksumAck { + pub flag: u32, + pub ack: u32, +} + +impl BBChecksumAck { + pub fn new() -> BBChecksumAck { + BBChecksumAck { + flag: 0, + ack: 1, + } + } +} #[cfg(test)] mod tests {