From 500b02a2256c489b21563d6cb4024e8751233ea4 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 31 Jan 2020 11:58:24 -0800 Subject: [PATCH] did I really forget this --- src/packet/messages.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/packet/messages.rs b/src/packet/messages.rs index 92ec8bf..476ffe7 100644 --- a/src/packet/messages.rs +++ b/src/packet/messages.rs @@ -152,6 +152,9 @@ pub enum GameMessage { PhotonChairTurn(PhotonChairTurn), PhotonChairMove(PhotonChairMove), Unknown3B(Unknown3B), + RequestExp(RequestExp), + RequestItem(RequestItem), + KillMonster(KillMonster), } impl PSOPacketData for GameMessage { @@ -177,6 +180,9 @@ impl PSOPacketData for GameMessage { PhotonChairTurn::CMD => Ok(GameMessage::PhotonChairTurn(PhotonChairTurn::from_bytes(&mut cur)?)), PhotonChairMove::CMD => Ok(GameMessage::PhotonChairMove(PhotonChairMove::from_bytes(&mut cur)?)), Unknown3B::CMD => Ok(GameMessage::Unknown3B(Unknown3B::from_bytes(&mut cur)?)), + RequestExp::CMD => Ok(GameMessage::RequestExp(RequestExp::from_bytes(&mut cur)?)), + RequestItem::CMD => Ok(GameMessage::RequestItem(RequestItem::from_bytes(&mut cur)?)), + KillMonster::CMD => Ok(GameMessage::KillMonster(KillMonster::from_bytes(&mut cur)?)), _ => Err(PacketParseError::UnknownMessage(byte[0], { let mut b = vec![0; len[0] as usize * 4]; @@ -203,6 +209,9 @@ impl PSOPacketData for GameMessage { GameMessage::PhotonChairTurn(data) => data.as_bytes(), GameMessage::PhotonChairMove(data) => data.as_bytes(), GameMessage::Unknown3B(data) => data.as_bytes(), + GameMessage::RequestExp(data) => data.as_bytes(), + GameMessage::RequestItem(data) => data.as_bytes(), + GameMessage::KillMonster(data) => data.as_bytes(), } } }