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