use log::warn; use libpso::packet::messages::*; use crate::common::serverstate::ClientId; use crate::ship::ship::{SendShipPacket, Rooms}; use crate::ship::location::{ClientLocation, RoomLobby}; pub fn request_exp(id: ClientId, request_exp: &RequestExp, client_location: &ClientLocation, rooms: &Rooms) -> Box + Send> { match client_location.get_area(id).unwrap() { RoomLobby::Room(room) => { let r = rooms[room.0].as_ref().unwrap(); warn!("killed a {:?}", r.maps.enemy_by_id(request_exp.enemy_id as usize).unwrap().monster); }, _ => {} }; Box::new(None.into_iter()) }