|
|
@ -4,7 +4,7 @@ use elseware::common::serverstate::{ClientId, ServerState}; |
|
|
|
use elseware::entity::gateway::EntityGateway;
|
|
|
|
use elseware::entity::account::{UserAccountEntity, NewUserAccountEntity, NewUserSettingsEntity};
|
|
|
|
use elseware::entity::character::{CharacterEntity, NewCharacterEntity};
|
|
|
|
use elseware::entity::item::{Meseta, BankName, BankIdentifier};
|
|
|
|
use elseware::entity::item::{Meseta, BankIdentifier};
|
|
|
|
use elseware::ship::ship::{ShipServerState, RecvShipPacket};
|
|
|
|
use elseware::ship::room::Difficulty;
|
|
|
|
|
|
|
@ -16,7 +16,7 @@ use libpso::{utf8_to_array, utf8_to_utf16_array}; |
|
|
|
|
|
|
|
|
|
|
|
//TODO: remove kb_conf_preset
|
|
|
|
pub async fn new_user_character<EG: EntityGateway + Clone>(entity_gateway: &mut EG, username: &str, password: &str, kb_conf_preset: usize) -> (UserAccountEntity, CharacterEntity) {
|
|
|
|
pub async fn new_user_character<EG: EntityGateway + Clone>(entity_gateway: &mut EG, username: &str, password: &str, _kb_conf_preset: usize) -> (UserAccountEntity, CharacterEntity) {
|
|
|
|
let new_user = NewUserAccountEntity {
|
|
|
|
email: format!("{}@pso.com", username),
|
|
|
|
username: username.into(),
|
|
|
|