|
|
@ -12,6 +12,7 @@ use libpso::utf8_to_utf16_array; |
|
|
|
|
|
|
|
use crate::common::cipherkeys::{ELSEWHERE_PRIVATE_KEY, ELSEWHERE_PARRAY};
|
|
|
|
use crate::common::serverstate::{SendServerPacket, RecvServerPacket, ServerState, OnConnect, ClientId};
|
|
|
|
use crate::common::leveltable::CharacterLevelTable;
|
|
|
|
|
|
|
|
use crate::entity::gateway::EntityGateway;
|
|
|
|
use crate::entity::account::{UserAccount, UserSettings, USERFLAG_NEWCHAR, USERFLAG_DRESSINGROOM};
|
|
|
@ -99,6 +100,7 @@ pub struct ShipServerState<EG: EntityGateway> { |
|
|
|
entity_gateway: EG,
|
|
|
|
clients: HashMap<ClientId, ClientState>,
|
|
|
|
client_location: ClientLocation,
|
|
|
|
level_table: CharacterLevelTable,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<EG: EntityGateway> ShipServerState<EG> {
|
|
|
@ -107,6 +109,7 @@ impl<EG: EntityGateway> ShipServerState<EG> { |
|
|
|
entity_gateway: entity_gateway,
|
|
|
|
clients: HashMap::new(),
|
|
|
|
client_location: ClientLocation::new(),
|
|
|
|
level_table: CharacterLevelTable::new(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|