|
|
@ -8,15 +8,15 @@ use libpso::packet::login::*; |
|
|
|
use libpso::{PacketParseError, PSOPacket};
|
|
|
|
use libpso::crypto::bb::PSOBBCipher;
|
|
|
|
|
|
|
|
use elseware::common::cipherkeys::{ELSEWHERE_PRIVATE_KEY, ELSEWHERE_PARRAY};
|
|
|
|
use elseware::common::serverstate::{SendServerPacket, RecvServerPacket, ServerState, OnConnect, ClientId};
|
|
|
|
use elseware::{utf8_to_array, utf8_to_utf16_array};
|
|
|
|
use crate::common::cipherkeys::{ELSEWHERE_PRIVATE_KEY, ELSEWHERE_PARRAY};
|
|
|
|
use crate::common::serverstate::{SendServerPacket, RecvServerPacket, ServerState, OnConnect, ClientId};
|
|
|
|
use crate::{utf8_to_array, utf8_to_utf16_array};
|
|
|
|
|
|
|
|
use elseware::entity::gateway::EntityGateway;
|
|
|
|
use elseware::entity::account::{UserAccount, USERFLAG_NEWCHAR, USERFLAG_DRESSINGROOM};
|
|
|
|
use elseware::entity::character::Character;
|
|
|
|
use crate::entity::gateway::EntityGateway;
|
|
|
|
use crate::entity::account::{UserAccount, USERFLAG_NEWCHAR, USERFLAG_DRESSINGROOM};
|
|
|
|
use crate::entity::character::Character;
|
|
|
|
|
|
|
|
use crate::login::get_login_status;
|
|
|
|
use crate::login::login::get_login_status;
|
|
|
|
|
|
|
|
pub const CHARACTER_PORT: u16 = 12001;
|
|
|
|
|
|
|
@ -182,7 +182,7 @@ impl<EG: EntityGateway> CharacterServerState<EG> { |
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
fn send_ship_list(&mut self, id: ClientId, pkt: &Login) -> Result<Vec<SendCharacterPacket>, CharacterError> {
|
|
|
|
fn send_ship_list(&mut self, _id: ClientId, _pkt: &Login) -> Result<Vec<SendCharacterPacket>, CharacterError> {
|
|
|
|
Ok(vec![SendCharacterPacket::Timestamp(Timestamp::new(chrono::Utc::now())),
|
|
|
|
SendCharacterPacket::ShipList(ShipList {
|
|
|
|
flag: 0,
|
|
|
@ -420,7 +420,7 @@ impl<EG: EntityGateway> ServerState for CharacterServerState<EG> { |
|
|
|
#[cfg(test)]
|
|
|
|
mod test {
|
|
|
|
use super::*;
|
|
|
|
use elseware::entity::account::UserSettings;
|
|
|
|
use crate::entity::account::UserSettings;
|
|
|
|
use libpso::character::settings;
|
|
|
|
use std::time::SystemTime;
|
|
|
|
|
|
|
|