add MapsError to ShipError

This commit is contained in:
jake 2020-04-26 21:57:19 -06:00
parent 160fc7f10b
commit 375c97c95d

View File

@ -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),
}