|
@ -34,7 +34,9 @@ async fn test_bank_items_sent_in_character_login() { |
|
|
}
|
|
|
}
|
|
|
}).await;
|
|
|
}).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
|
|
|
|
|
|
let packets = ship.handle(ClientId(1), &RecvShipPacket::MenuSelect(MenuSelect {
|
|
|
let packets = ship.handle(ClientId(1), &RecvShipPacket::MenuSelect(MenuSelect {
|
|
@ -71,7 +73,9 @@ async fn test_request_bank_items() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -114,7 +118,9 @@ async fn test_request_stacked_bank_items() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -186,7 +192,9 @@ async fn test_request_bank_items_sorted() { |
|
|
}
|
|
|
}
|
|
|
}).await;
|
|
|
}).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -249,7 +257,9 @@ async fn test_deposit_individual_item() { |
|
|
}
|
|
|
}
|
|
|
}).await;
|
|
|
}).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
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;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
@ -316,7 +326,9 @@ async fn test_deposit_stacked_item() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
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;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
@ -383,7 +395,9 @@ async fn test_deposit_partial_stacked_item() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
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;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
@ -476,7 +490,9 @@ async fn test_deposit_stacked_item_with_stack_already_in_bank() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
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;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
@ -557,7 +573,9 @@ async fn test_deposit_stacked_item_with_full_stack_in_bank() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -649,7 +667,9 @@ async fn test_deposit_individual_item_in_full_bank() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -739,7 +759,9 @@ async fn test_deposit_stacked_item_in_full_bank() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -844,7 +866,9 @@ async fn test_deposit_stacked_item_in_full_bank_with_partial_stack() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -899,7 +923,9 @@ async fn test_deposit_meseta() { |
|
|
char1.meseta = 300;
|
|
|
char1.meseta = 300;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -935,7 +961,9 @@ async fn test_deposit_too_much_meseta() { |
|
|
char1.bank_meseta = 999980;
|
|
|
char1.bank_meseta = 999980;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -972,7 +1000,9 @@ async fn test_deposit_meseta_when_bank_is_maxed() { |
|
|
char1.bank_meseta = 999999;
|
|
|
char1.bank_meseta = 999999;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -1024,7 +1054,9 @@ async fn test_withdraw_individual_item() { |
|
|
}
|
|
|
}
|
|
|
}).await;
|
|
|
}).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
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;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
@ -1089,7 +1121,9 @@ async fn test_withdraw_stacked_item() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
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;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
@ -1154,7 +1188,9 @@ async fn test_withdraw_partial_stacked_item() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
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;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
@ -1245,7 +1281,9 @@ async fn test_withdraw_stacked_item_with_stack_already_in_inventory() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
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;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
@ -1325,7 +1363,9 @@ async fn test_withdraw_stacked_item_with_full_stack_in_inventory() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -1417,7 +1457,9 @@ async fn test_withdraw_individual_item_in_full_inventory() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -1507,7 +1549,9 @@ async fn test_withdraw_stacked_item_in_full_inventory() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -1613,7 +1657,9 @@ async fn test_withdraw_stacked_item_in_full_inventory_with_partial_stack() { |
|
|
}).await;
|
|
|
}).await;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -1668,7 +1714,9 @@ async fn test_withdraw_meseta() { |
|
|
char1.bank_meseta = 300;
|
|
|
char1.bank_meseta = 300;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -1704,7 +1752,9 @@ async fn test_withdraw_too_much_meseta() { |
|
|
char1.bank_meseta = 300;
|
|
|
char1.bank_meseta = 300;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
@ -1740,7 +1790,9 @@ async fn test_withdraw_meseta_inventory_is_maxed() { |
|
|
char1.bank_meseta = 300;
|
|
|
char1.bank_meseta = 300;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
entity_gateway.save_character(&char1).await;
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::new(entity_gateway.clone());
|
|
|
|
|
|
|
|
|
let mut ship = ShipServerState::builder()
|
|
|
|
|
|
.gateway(entity_gateway.clone())
|
|
|
|
|
|
.build();
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
log_in_char(&mut ship, ClientId(1), "a1", "a").await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
join_lobby(&mut ship, ClientId(1)).await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|
create_room(&mut ship, ClientId(1), "room", "").await;
|
|
|