Browse Source

add MapsError to ShipError

pbs
jake 5 years ago
parent
commit
375c97c95d
  1. 2
      src/ship/ship.rs

2
src/ship/ship.rs

@ -25,6 +25,7 @@ use crate::ship::location::{ClientLocation, LobbyId, RoomId, RoomLobby, MAX_ROOM
use crate::ship::character::{CharacterBytesBuilder, FullCharacterBytesBuilder};
use crate::ship::items;
use crate::ship::room;
use crate::ship::map::MapsError;
use crate::ship::packet::handler;
pub const SHIP_PORT: u16 = 23423;
@ -39,6 +40,7 @@ pub enum ShipError {
InvalidSlot(ClientId, u32),
TooManyClients,
ClientLocationError(#[from] ClientLocationError),
MapsError(#[from] MapsError),
InvalidRoom(u32),
}

Loading…
Cancel
Save