|
@ -57,6 +57,7 @@ pub enum ShipError { |
|
|
InvalidQuest(u32),
|
|
|
InvalidQuest(u32),
|
|
|
InvalidQuestFilename(String),
|
|
|
InvalidQuestFilename(String),
|
|
|
IoError(#[from] std::io::Error),
|
|
|
IoError(#[from] std::io::Error),
|
|
|
|
|
|
NotEnoughMeseta(ClientId, u32),
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
#[derive(Debug)]
|
|
@ -289,6 +290,9 @@ impl<EG: EntityGateway> ShipServerState<EG> { |
|
|
GameMessage::PlayerWarped(_) | GameMessage::PlayerChangedFloor(_) | GameMessage::InitializeSpeechNpc(_) => {
|
|
|
GameMessage::PlayerWarped(_) | GameMessage::PlayerChangedFloor(_) | GameMessage::InitializeSpeechNpc(_) => {
|
|
|
handler::message::update_player_position(id, &msg.msg, &mut self.clients, &mut self.client_location, &self.rooms)
|
|
|
handler::message::update_player_position(id, &msg.msg, &mut self.clients, &mut self.client_location, &self.rooms)
|
|
|
},
|
|
|
},
|
|
|
|
|
|
GameMessage::ChargeAttack(charge_attack) => {
|
|
|
|
|
|
handler::message::charge_attack(id, charge_attack, &mut self.clients, &mut self.entity_gateway).await
|
|
|
|
|
|
},
|
|
|
_ => {
|
|
|
_ => {
|
|
|
let cmsg = msg.clone();
|
|
|
let cmsg = msg.clone();
|
|
|
Ok(Box::new(self.client_location.get_client_neighbors(id).unwrap().into_iter()
|
|
|
Ok(Box::new(self.client_location.get_client_neighbors(id).unwrap().into_iter()
|
|
|