From 4434c42eaa3db3e4f78c5f1548c237cc9c916f43 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 1 Oct 2020 16:58:16 -0600 Subject: [PATCH] full char data packet --- src/ship/ship.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ship/ship.rs b/src/ship/ship.rs index e654bc3..7fb960a 100644 --- a/src/ship/ship.rs +++ b/src/ship/ship.rs @@ -91,6 +91,7 @@ pub enum RecvShipPacket { QuestFileRequest(QuestFileRequest), QuestChunkAck(QuestChunkAck), DoneLoadingQuest(DoneLoadingQuest), + FullCharacterData(Box), } impl RecvServerPacket for RecvShipPacket { @@ -126,6 +127,7 @@ impl RecvServerPacket for RecvShipPacket { 0x84 => Ok(RecvShipPacket::LobbySelect(LobbySelect::from_bytes(data)?)), 0xA2 => Ok(RecvShipPacket::RequestQuestList(RequestQuestList::from_bytes(data)?)), 0xAC => Ok(RecvShipPacket::DoneLoadingQuest(DoneLoadingQuest::from_bytes(data)?)), + 0xE7 => Ok(RecvShipPacket::FullCharacterData(Box::new(FullCharacterData::from_bytes(data)?))), _ => Err(PacketParseError::WrongPacketForServerType(u16::from_le_bytes([data[2], data[3]]), data.to_vec())) } } @@ -556,6 +558,9 @@ impl ServerState for ShipServerState { RecvShipPacket::DoneLoadingQuest(_) => { handler::quest::done_loading_quest(id, &mut self.clients, &self.client_location)? }, + RecvShipPacket::FullCharacterData(full_character_data) => { + Box::new(None.into_iter()) + }, }) }