From 35e91b38f12b480959b7dcbbd1e12670670f4d93 Mon Sep 17 00:00:00 2001 From: Andy Newjack Date: Sat, 2 May 2020 18:28:29 -0300 Subject: [PATCH] rename tech -> tek and uncomment requests --- src/packet/messages.rs | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/packet/messages.rs b/src/packet/messages.rs index a02bd7a..370dcd2 100644 --- a/src/packet/messages.rs +++ b/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(),