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 +}