Browse Source

rename tech -> tek and uncomment requests

pull/3/head
Andy Newjack 5 years ago
parent
commit
35e91b38f1
  1. 25
      src/packet/messages.rs

25
src/packet/messages.rs

@ -722,13 +722,16 @@ pub struct PhotonChairMove {
// unknown3: u8,
//}
//#[pso_message(0xB8)]
//pub struct TechItem {
//}
#[pso_message(0xB8)]
pub struct TekRequest {
item_index: u8,
_unknown1: u8,
_unknown2: u8,
_unknown3: u8,
}
//#[pso_message(0xBA)]
//pub struct TechWeaponAccept {
//pub struct TekAccept {
//}
@ -1037,8 +1040,8 @@ pub enum GameMessage {
PhotonChairMove(PhotonChairMove),
//ShopRequest(ShopRequest),
//BuyItem(BuyItem),
//TechItem(TechItem),
//TechWeaponAccept(TechWeaponAccept),
TekRequest(TekRequest),
//TekAccept(TekAccept),
//BankRequest(BankRequest),
//BankInteraction(BankInteraction),
//PlayerSoldItem(PlayerSoldItem),
@ -1199,8 +1202,8 @@ impl PSOPacketData for GameMessage {
PhotonChairMove::CMD => Ok(GameMessage::PhotonChairMove(PhotonChairMove::from_bytes(&mut cur)?)),
//ShopRequest::CMD => Ok(GameMessage::ShopRequest(ShopRequest::from_bytes(&mut cur)?)),
//BuyItem::CMD => Ok(GameMessage::BuyItem(BuyItem::from_bytes(&mut cur)?)),
//TechItem::CMD => Ok(GameMessage::TechItem(TechItem::from_bytes(&mut cur)?)),
//TechWeaponAccept::CMD => Ok(GameMessage::TechWeaponAccept(TechWeaponAccept::from_bytes(&mut cur)?)),
TekRequest::CMD => Ok(GameMessage::TekRequest(TekRequest::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)?)),
//PlayerSoldItem::CMD => Ok(GameMessage::PlayerSoldItem(PlayerSoldItem::from_bytes(&mut cur)?)),
@ -1363,8 +1366,8 @@ impl PSOPacketData for GameMessage {
GameMessage::PhotonChairMove(data) => data.as_bytes(),
//GameMessage::ShopRequest(data) => data.as_bytes(),
//GameMessage::BuyItem(data) => data.as_bytes(),
//GameMessage::TechItem(data) => data.as_bytes(),
//GameMessage::TechWeaponAccept(data) => data.as_bytes(),
GameMessage::TekRequest(data) => data.as_bytes(),
GameMessage::TekAccept(data) => data.as_bytes(),
//GameMessage::BankRequest(data) => data.as_bytes(),
//GameMessage::BankInteraction(data) => data.as_bytes(),
//GameMessage::PlayerSoldItem(data) => data.as_bytes(),

Loading…
Cancel
Save