|
@ -730,6 +730,14 @@ pub struct TekRequest { |
|
|
_unknown3: u8,
|
|
|
_unknown3: u8,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#[pso_message(0xB9)]
|
|
|
|
|
|
pub struct TekPreview {
|
|
|
|
|
|
pub item_bytes: [u8; 12],
|
|
|
|
|
|
pub item_id: u32,
|
|
|
|
|
|
pub item_bytes2: [u8; 4],
|
|
|
|
|
|
pub padding: [u8; 8],
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
//#[pso_message(0xBA)]
|
|
|
//#[pso_message(0xBA)]
|
|
|
//pub struct TekAccept {
|
|
|
//pub struct TekAccept {
|
|
|
|
|
|
|
|
@ -1041,6 +1049,7 @@ pub enum GameMessage { |
|
|
//ShopRequest(ShopRequest),
|
|
|
//ShopRequest(ShopRequest),
|
|
|
//BuyItem(BuyItem),
|
|
|
//BuyItem(BuyItem),
|
|
|
TekRequest(TekRequest),
|
|
|
TekRequest(TekRequest),
|
|
|
|
|
|
TekPreview(TekPreview),
|
|
|
//TekAccept(TekAccept),
|
|
|
//TekAccept(TekAccept),
|
|
|
//BankRequest(BankRequest),
|
|
|
//BankRequest(BankRequest),
|
|
|
//BankInteraction(BankInteraction),
|
|
|
//BankInteraction(BankInteraction),
|
|
@ -1203,6 +1212,7 @@ impl PSOPacketData for GameMessage { |
|
|
//ShopRequest::CMD => Ok(GameMessage::ShopRequest(ShopRequest::from_bytes(&mut cur)?)),
|
|
|
//ShopRequest::CMD => Ok(GameMessage::ShopRequest(ShopRequest::from_bytes(&mut cur)?)),
|
|
|
//BuyItem::CMD => Ok(GameMessage::BuyItem(BuyItem::from_bytes(&mut cur)?)),
|
|
|
//BuyItem::CMD => Ok(GameMessage::BuyItem(BuyItem::from_bytes(&mut cur)?)),
|
|
|
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)?)),
|
|
|
//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)?)),
|
|
|
//BankRequest::CMD => Ok(GameMessage::BankRequest(BankRequest::from_bytes(&mut cur)?)),
|
|
|
//BankInteraction::CMD => Ok(GameMessage::BankInteraction(BankInteraction::from_bytes(&mut cur)?)),
|
|
|
//BankInteraction::CMD => Ok(GameMessage::BankInteraction(BankInteraction::from_bytes(&mut cur)?)),
|
|
@ -1367,7 +1377,8 @@ impl PSOPacketData for GameMessage { |
|
|
//GameMessage::ShopRequest(data) => data.as_bytes(),
|
|
|
//GameMessage::ShopRequest(data) => data.as_bytes(),
|
|
|
//GameMessage::BuyItem(data) => data.as_bytes(),
|
|
|
//GameMessage::BuyItem(data) => data.as_bytes(),
|
|
|
GameMessage::TekRequest(data) => data.as_bytes(),
|
|
|
GameMessage::TekRequest(data) => data.as_bytes(),
|
|
|
GameMessage::TekAccept(data) => data.as_bytes(),
|
|
|
|
|
|
|
|
|
GameMessage::TekPreview(data) => data.as_bytes(),
|
|
|
|
|
|
// GameMessage::TekAccept(data) => data.as_bytes(),
|
|
|
//GameMessage::BankRequest(data) => data.as_bytes(),
|
|
|
//GameMessage::BankRequest(data) => data.as_bytes(),
|
|
|
//GameMessage::BankInteraction(data) => data.as_bytes(),
|
|
|
//GameMessage::BankInteraction(data) => data.as_bytes(),
|
|
|
//GameMessage::PlayerSoldItem(data) => data.as_bytes(),
|
|
|
//GameMessage::PlayerSoldItem(data) => data.as_bytes(),
|
|
|