From 8b4ed1530f78e918955ae4d3b069f1b302f0449d Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 11 Jan 2020 01:08:44 -0800 Subject: [PATCH] leave area packets --- src/packet/ship.rs | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/src/packet/ship.rs b/src/packet/ship.rs index 7f73916..9f776dd 100644 --- a/src/packet/ship.rs +++ b/src/packet/ship.rs @@ -249,6 +249,40 @@ pub struct AddToRoom { pub playerinfo: PlayerInfo, } +#[pso_packet(0x69)] +pub struct LeaveLobby { + client: u8, + leader: u8, + _padding: u16, +} + +impl LeaveLobby { + pub fn new(client: u8, leader: u8) -> LeaveLobby { + LeaveLobby { + client: client, + leader: leader, + _padding: 0, + } + } +} + +#[pso_packet(0x66)] +pub struct LeaveRoom { + client: u8, + leader: u8, + _padding: u16, +} + +impl LeaveRoom { + pub fn new(client: u8, leader: u8) -> LeaveRoom { + LeaveRoom { + client: client, + leader: leader, + _padding: 0, + } + } +} + #[pso_packet(0x06)] pub struct PlayerChat { pub unknown: u32, @@ -264,4 +298,4 @@ impl PlayerChat { message: message, } } -} \ No newline at end of file +}