|
|
@ -1,8 +1,8 @@ |
|
|
|
use networking::serverstate::{ClientId, ServerState};
|
|
|
|
use entity::gateway::{EntityGateway, InMemoryGateway};
|
|
|
|
use elseware::ship::ship::{ShipServerState, RecvShipPacket};
|
|
|
|
use elseware::ship::ship::RecvShipPacket;
|
|
|
|
|
|
|
|
use libpso::character::settings::{DEFAULT_KEYBOARD_CONFIG1, DEFAULT_KEYBOARD_CONFIG2, DEFAULT_KEYBOARD_CONFIG3, DEFAULT_KEYBOARD_CONFIG4};
|
|
|
|
use libpso::character::settings::{DEFAULT_KEYBOARD_CONFIG1, DEFAULT_KEYBOARD_CONFIG4};
|
|
|
|
use libpso::packet::ship::*;
|
|
|
|
|
|
|
|
#[path = "common.rs"]
|
|
|
@ -33,7 +33,7 @@ async fn test_save_options() { |
|
|
|
async fn test_change_keyboard_mappings() {
|
|
|
|
let mut entity_gateway = InMemoryGateway::default();
|
|
|
|
|
|
|
|
let (user1, char1) = new_user_character(&mut entity_gateway, "a1", "a", 2).await;
|
|
|
|
let (user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a", 2).await;
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
|