|
@ -133,9 +133,7 @@ async fn test_trade_one_individual_item() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -234,9 +232,7 @@ async fn test_trade_player2_to_player1() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -335,9 +331,7 @@ async fn test_reverse_trade_ack_order() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -439,9 +433,7 @@ async fn test_trade_one_stacked_item() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -543,9 +535,7 @@ async fn test_trade_partial_stacked_item() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -660,9 +650,7 @@ async fn test_trade_individual_both() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -832,9 +820,7 @@ async fn test_trade_stacked_both() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -1002,9 +988,7 @@ async fn test_trade_partial_stack_both() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -1178,9 +1162,7 @@ async fn test_trade_same_stacked_item_to_eachother() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -1350,9 +1332,7 @@ async fn test_trade_stacked_when_already_have_partial_stack() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -1487,9 +1467,7 @@ async fn test_trade_individual_for_stacked() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -1679,9 +1657,7 @@ async fn test_trade_multiple_individual() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -1950,9 +1926,7 @@ async fn test_trade_multiple_stacked() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack1, p1_stack2])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack1, p1_stack2])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack1, p2_stack2])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack1, p2_stack2])).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2195,9 +2169,7 @@ async fn test_trade_not_enough_inventory_space_individual() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2313,9 +2285,7 @@ async fn test_trade_not_enough_inventory_space_stacked() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2425,9 +2395,7 @@ async fn test_trade_stack_too_big() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(vec![p2_stack])).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2506,9 +2474,7 @@ async fn test_trade_meseta() { |
|
|
|
|
|
|
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(2323)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(2323)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2588,9 +2554,7 @@ async fn test_trade_too_much_meseta() { |
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(4000)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(4000)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char2.id, Meseta(999000)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char2.id, Meseta(999000)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2640,9 +2604,7 @@ async fn test_trade_invalid_amount_of_meseta() { |
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(4000)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(4000)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char2.id, Meseta(999000)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char2.id, Meseta(999000)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2692,9 +2654,7 @@ async fn test_trade_meseta_request_and_items_dont_match() { |
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(4000)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(4000)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char2.id, Meseta(999000)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char2.id, Meseta(999000)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2741,9 +2701,7 @@ async fn test_player_declined_trade() { |
|
|
let (_user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a", 1).await;
|
|
|
let (_user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a", 1).await;
|
|
|
let (_user2, _char2) = new_user_character(&mut entity_gateway, "a2", "a", 1).await;
|
|
|
let (_user2, _char2) = new_user_character(&mut entity_gateway, "a2", "a", 1).await;
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2789,9 +2747,7 @@ async fn test_back_out_of_trade_last_minute() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -2885,9 +2841,7 @@ async fn test_valid_trade_when_both_inventories_are_full() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -3027,9 +2981,7 @@ async fn test_invalid_trade_when_both_inventories_are_full() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(p2_inv)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -3133,9 +3085,7 @@ async fn test_client_tries_to_start_two_trades() { |
|
|
let (_user2, _char2) = new_user_character(&mut entity_gateway, "a2", "a", 1).await;
|
|
|
let (_user2, _char2) = new_user_character(&mut entity_gateway, "a2", "a", 1).await;
|
|
|
let (_user2, _char3) = new_user_character(&mut entity_gateway, "a3", "a", 1).await;
|
|
|
let (_user2, _char3) = new_user_character(&mut entity_gateway, "a3", "a", 1).await;
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(3), "a3", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(3), "a3", "a").await;
|
|
@ -3166,9 +3116,7 @@ async fn test_client_tries_trading_with_client_already_trading() { |
|
|
let (_user2, _char2) = new_user_character(&mut entity_gateway, "a2", "a", 1).await;
|
|
|
let (_user2, _char2) = new_user_character(&mut entity_gateway, "a2", "a", 1).await;
|
|
|
let (_user2, _char3) = new_user_character(&mut entity_gateway, "a3", "a", 1).await;
|
|
|
let (_user2, _char3) = new_user_character(&mut entity_gateway, "a3", "a", 1).await;
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(3), "a3", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(3), "a3", "a").await;
|
|
@ -3223,9 +3171,7 @@ async fn test_add_then_remove_individual_item() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -3354,9 +3300,7 @@ async fn test_add_then_remove_stacked_item() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack1, p1_stack2])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack1, p1_stack2])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -3489,9 +3433,7 @@ async fn test_add_then_remove_partial_stack() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack1, p1_stack2])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack1, p1_stack2])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -3578,9 +3520,7 @@ async fn test_add_then_remove_meseta() { |
|
|
|
|
|
|
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(2323)).await.unwrap();
|
|
|
entity_gateway.set_character_meseta(&char1.id, Meseta(2323)).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -3679,9 +3619,7 @@ async fn test_items_to_trade_data_does_not_match() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -3762,9 +3700,7 @@ async fn test_items_to_trade_id_does_not_match() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -3836,9 +3772,7 @@ async fn test_stack_is_same_amount_in_request_and_items_to_trade() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -3910,9 +3844,7 @@ async fn test_stack_is_same_amount_in_request_and_items_to_trade2() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(vec![p1_stack])).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -4006,9 +3938,7 @@ async fn test_items_to_trade_count_less_than() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -4110,9 +4040,7 @@ async fn test_items_to_trade_count_greater_than() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -4218,9 +4146,7 @@ async fn test_items_to_trade_count_mismatch_with_meseta() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
@ -4295,9 +4221,7 @@ async fn test_dropping_item_after_trade() { |
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char1.id, &item::InventoryEntity::new(p1_inv)).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
entity_gateway.set_character_inventory(&char2.id, &item::InventoryEntity::new(Vec::<item::InventoryItemEntity>::new())).await.unwrap();
|
|
|
|
|
|
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build());
|
|
|
|
|
|
|
|
|
let mut ship = standard_ship(entity_gateway.clone());
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(2), "a2", "a").await;
|
|
|
|
|
|
|
|
|