|
@ -561,6 +561,11 @@ pub struct KillMonster { |
|
|
|
|
|
|
|
|
//}
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
#[pso_message(0x80)]
|
|
|
|
|
|
pub struct PlayerTrapActivate {
|
|
|
|
|
|
data: [u8; 4],
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
#[pso_message(0x83)]
|
|
|
#[pso_message(0x83)]
|
|
|
pub struct PlayerTrapSet {
|
|
|
pub struct PlayerTrapSet {
|
|
|
trap_type: u16,
|
|
|
trap_type: u16,
|
|
@ -572,11 +577,6 @@ pub struct PlayerTrapSet { |
|
|
|
|
|
|
|
|
//}
|
|
|
//}
|
|
|
|
|
|
|
|
|
//#[pso_message(0x80)]
|
|
|
|
|
|
//pub struct PlayerTrapActivate {
|
|
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
//#[pso_message(0x87)]
|
|
|
//#[pso_message(0x87)]
|
|
|
//pub struct PlayerShrink {
|
|
|
//pub struct PlayerShrink {
|
|
|
|
|
|
|
|
@ -1042,7 +1042,7 @@ pub enum GameMessage { |
|
|
//BmodeData(BmodeData),
|
|
|
//BmodeData(BmodeData),
|
|
|
PlayerTrapSet(PlayerTrapSet),
|
|
|
PlayerTrapSet(PlayerTrapSet),
|
|
|
//Unknown84(Unknown84),
|
|
|
//Unknown84(Unknown84),
|
|
|
//PlayerTrapActivate(PlayerTrapActivate),
|
|
|
|
|
|
|
|
|
PlayerTrapActivate(PlayerTrapActivate),
|
|
|
//PlayerShrink(PlayerShrink),
|
|
|
//PlayerShrink(PlayerShrink),
|
|
|
//PlayerUnshrink(PlayerUnshrink),
|
|
|
//PlayerUnshrink(PlayerUnshrink),
|
|
|
PlayerKilledByMonster(PlayerKilledByMonster),
|
|
|
PlayerKilledByMonster(PlayerKilledByMonster),
|
|
@ -1207,7 +1207,7 @@ impl PSOPacketData for GameMessage { |
|
|
//BmodeData::CMD => Ok(GameMessage::BmodeData(BmodeData::from_bytes(&mut cur)?)),
|
|
|
//BmodeData::CMD => Ok(GameMessage::BmodeData(BmodeData::from_bytes(&mut cur)?)),
|
|
|
PlayerTrapSet::CMD => Ok(GameMessage::PlayerTrapSet(PlayerTrapSet::from_bytes(&mut cur)?)),
|
|
|
PlayerTrapSet::CMD => Ok(GameMessage::PlayerTrapSet(PlayerTrapSet::from_bytes(&mut cur)?)),
|
|
|
//Unknown84::CMD => Ok(GameMessage::Unknown84(Unknown84::from_bytes(&mut cur)?)),
|
|
|
//Unknown84::CMD => Ok(GameMessage::Unknown84(Unknown84::from_bytes(&mut cur)?)),
|
|
|
//PlayerTrapActivate::CMD => Ok(GameMessage::PlayerTrapActivate(PlayerTrapActivate::from_bytes(&mut cur)?)),
|
|
|
|
|
|
|
|
|
PlayerTrapActivate::CMD => Ok(GameMessage::PlayerTrapActivate(PlayerTrapActivate::from_bytes(&mut cur)?)),
|
|
|
//PlayerShrink::CMD => Ok(GameMessage::PlayerShrink(PlayerShrink::from_bytes(&mut cur)?)),
|
|
|
//PlayerShrink::CMD => Ok(GameMessage::PlayerShrink(PlayerShrink::from_bytes(&mut cur)?)),
|
|
|
//PlayerUnshrink::CMD => Ok(GameMessage::PlayerUnshrink(PlayerUnshrink::from_bytes(&mut cur)?)),
|
|
|
//PlayerUnshrink::CMD => Ok(GameMessage::PlayerUnshrink(PlayerUnshrink::from_bytes(&mut cur)?)),
|
|
|
PlayerKilledByMonster::CMD => Ok(GameMessage::PlayerKilledByMonster(PlayerKilledByMonster::from_bytes(&mut cur)?)),
|
|
|
PlayerKilledByMonster::CMD => Ok(GameMessage::PlayerKilledByMonster(PlayerKilledByMonster::from_bytes(&mut cur)?)),
|
|
@ -1374,7 +1374,7 @@ impl PSOPacketData for GameMessage { |
|
|
//GameMessage::BmodeData(data) => data.as_bytes(),
|
|
|
//GameMessage::BmodeData(data) => data.as_bytes(),
|
|
|
GameMessage::PlayerTrapSet(data) => data.as_bytes(),
|
|
|
GameMessage::PlayerTrapSet(data) => data.as_bytes(),
|
|
|
//GameMessage::Unknown84(data) => data.as_bytes(),
|
|
|
//GameMessage::Unknown84(data) => data.as_bytes(),
|
|
|
//GameMessage::PlayerTrapActivate(data) => data.as_bytes(),
|
|
|
|
|
|
|
|
|
GameMessage::PlayerTrapActivate(data) => data.as_bytes(),
|
|
|
//GameMessage::PlayerShrink(data) => data.as_bytes(),
|
|
|
//GameMessage::PlayerShrink(data) => data.as_bytes(),
|
|
|
//GameMessage::PlayerUnshrink(data) => data.as_bytes(),
|
|
|
//GameMessage::PlayerUnshrink(data) => data.as_bytes(),
|
|
|
GameMessage::PlayerKilledByMonster(data) => data.as_bytes(),
|
|
|
GameMessage::PlayerKilledByMonster(data) => data.as_bytes(),
|
|
|