|
@ -742,19 +742,20 @@ pub struct TekPreview { |
|
|
|
|
|
|
|
|
//}
|
|
|
//}
|
|
|
|
|
|
|
|
|
//#[pso_message(0xBB)]
|
|
|
|
|
|
//pub struct BankRequest {
|
|
|
|
|
|
|
|
|
#[pso_message(0xBB)]
|
|
|
|
|
|
pub struct BankRequest {
|
|
|
|
|
|
unknown: u32,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
//#[pso_message(0xBD)]
|
|
|
|
|
|
//pub struct BankInteraction {
|
|
|
|
|
|
// item_id: u16,
|
|
|
|
|
|
// amount: u8,
|
|
|
|
|
|
// action: u8,
|
|
|
|
|
|
// item_amount: u8,
|
|
|
|
|
|
// unknown2: u8,
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
#[pso_message(0xBD)]
|
|
|
|
|
|
pub struct BankInteraction {
|
|
|
|
|
|
item_id: u32,
|
|
|
|
|
|
meseta_amount: u32,
|
|
|
|
|
|
action: u8,
|
|
|
|
|
|
item_amount: u8,
|
|
|
|
|
|
unknown: u16,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1055,8 +1056,8 @@ pub enum GameMessage { |
|
|
TekRequest(TekRequest),
|
|
|
TekRequest(TekRequest),
|
|
|
TekPreview(TekPreview),
|
|
|
TekPreview(TekPreview),
|
|
|
//TekAccept(TekAccept),
|
|
|
//TekAccept(TekAccept),
|
|
|
//BankRequest(BankRequest),
|
|
|
|
|
|
//BankInteraction(BankInteraction),
|
|
|
|
|
|
|
|
|
BankRequest(BankRequest),
|
|
|
|
|
|
BankInteraction(BankInteraction),
|
|
|
//PlayerSoldItem(PlayerSoldItem),
|
|
|
//PlayerSoldItem(PlayerSoldItem),
|
|
|
//TeamInvite(TeamInvite),
|
|
|
//TeamInvite(TeamInvite),
|
|
|
//AcceptTeamInvite(AcceptTeamInvite),
|
|
|
//AcceptTeamInvite(AcceptTeamInvite),
|
|
@ -1219,8 +1220,8 @@ impl PSOPacketData for GameMessage { |
|
|
TekRequest::CMD => Ok(GameMessage::TekRequest(TekRequest::from_bytes(&mut cur)?)),
|
|
|
TekRequest::CMD => Ok(GameMessage::TekRequest(TekRequest::from_bytes(&mut cur)?)),
|
|
|
TekPreview::CMD => Ok(GameMessage::TekPreview(TekPreview::from_bytes(&mut cur)?)),
|
|
|
TekPreview::CMD => Ok(GameMessage::TekPreview(TekPreview::from_bytes(&mut cur)?)),
|
|
|
//TekAccept::CMD => Ok(GameMessage::TekAccept(TekAccept::from_bytes(&mut cur)?)),
|
|
|
//TekAccept::CMD => Ok(GameMessage::TekAccept(TekAccept::from_bytes(&mut cur)?)),
|
|
|
//BankRequest::CMD => Ok(GameMessage::BankRequest(BankRequest::from_bytes(&mut cur)?)),
|
|
|
|
|
|
//BankInteraction::CMD => Ok(GameMessage::BankInteraction(BankInteraction::from_bytes(&mut cur)?)),
|
|
|
|
|
|
|
|
|
BankRequest::CMD => Ok(GameMessage::BankRequest(BankRequest::from_bytes(&mut cur)?)),
|
|
|
|
|
|
BankInteraction::CMD => Ok(GameMessage::BankInteraction(BankInteraction::from_bytes(&mut cur)?)),
|
|
|
//PlayerSoldItem::CMD => Ok(GameMessage::PlayerSoldItem(PlayerSoldItem::from_bytes(&mut cur)?)),
|
|
|
//PlayerSoldItem::CMD => Ok(GameMessage::PlayerSoldItem(PlayerSoldItem::from_bytes(&mut cur)?)),
|
|
|
//TeamInvite::CMD => Ok(GameMessage::TeamInvite(TeamInvite::from_bytes(&mut cur)?)),
|
|
|
//TeamInvite::CMD => Ok(GameMessage::TeamInvite(TeamInvite::from_bytes(&mut cur)?)),
|
|
|
//AcceptTeamInvite::CMD => Ok(GameMessage::AcceptTeamInvite(AcceptTeamInvite::from_bytes(&mut cur)?)),
|
|
|
//AcceptTeamInvite::CMD => Ok(GameMessage::AcceptTeamInvite(AcceptTeamInvite::from_bytes(&mut cur)?)),
|
|
@ -1385,8 +1386,8 @@ impl PSOPacketData for GameMessage { |
|
|
GameMessage::TekRequest(data) => data.as_bytes(),
|
|
|
GameMessage::TekRequest(data) => data.as_bytes(),
|
|
|
GameMessage::TekPreview(data) => data.as_bytes(),
|
|
|
GameMessage::TekPreview(data) => data.as_bytes(),
|
|
|
// GameMessage::TekAccept(data) => data.as_bytes(),
|
|
|
// GameMessage::TekAccept(data) => data.as_bytes(),
|
|
|
//GameMessage::BankRequest(data) => data.as_bytes(),
|
|
|
|
|
|
//GameMessage::BankInteraction(data) => data.as_bytes(),
|
|
|
|
|
|
|
|
|
GameMessage::BankRequest(data) => data.as_bytes(),
|
|
|
|
|
|
GameMessage::BankInteraction(data) => data.as_bytes(),
|
|
|
//GameMessage::PlayerSoldItem(data) => data.as_bytes(),
|
|
|
//GameMessage::PlayerSoldItem(data) => data.as_bytes(),
|
|
|
//GameMessage::TeamInvite(data) => data.as_bytes(),
|
|
|
//GameMessage::TeamInvite(data) => data.as_bytes(),
|
|
|
//GameMessage::AcceptTeamInvite(data) => data.as_bytes(),
|
|
|
//GameMessage::AcceptTeamInvite(data) => data.as_bytes(),
|
|
|