Browse Source

leave area packets

pull/3/head
jake 5 years ago
parent
commit
8b4ed1530f
  1. 34
      src/packet/ship.rs

34
src/packet/ship.rs

@ -249,6 +249,40 @@ pub struct AddToRoom {
pub playerinfo: PlayerInfo, 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)] #[pso_packet(0x06)]
pub struct PlayerChat { pub struct PlayerChat {
pub unknown: u32, pub unknown: u32,

Loading…
Cancel
Save