aboutsummaryrefslogtreecommitdiff
path: root/planetwars-matchrunner/src/pw_match.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-05-28 11:22:44 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-05-28 11:22:44 +0200
commit80c60ac69c9b0d86a4536eeac82cf266eb4430bc (patch)
treebc2ac0c803be27395c0297123f0794e1b8904676 /planetwars-matchrunner/src/pw_match.rs
parent643c0e7706ab927ef270e4a5b62ada0c38b651b9 (diff)
parentfadcda850332f8adb0a4382da9f04f78db3f6d1a (diff)
downloadplanetwars.dev-80c60ac69c9b0d86a4536eeac82cf266eb4430bc.tar.xz
planetwars.dev-80c60ac69c9b0d86a4536eeac82cf266eb4430bc.zip
Merge branch 'feature/leaderboard'
Diffstat (limited to 'planetwars-matchrunner/src/pw_match.rs')
-rw-r--r--planetwars-matchrunner/src/pw_match.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/planetwars-matchrunner/src/pw_match.rs b/planetwars-matchrunner/src/pw_match.rs
index c9a7f7b..f5b803c 100644
--- a/planetwars-matchrunner/src/pw_match.rs
+++ b/planetwars-matchrunner/src/pw_match.rs
@@ -24,8 +24,8 @@ pub struct MatchConfig {
}
pub struct PwMatch {
- match_ctx: MatchCtx,
- match_state: PlanetWars,
+ pub match_ctx: MatchCtx,
+ pub match_state: PlanetWars,
}
impl PwMatch {
@@ -39,7 +39,7 @@ impl PwMatch {
}
}
- pub async fn run(mut self) {
+ pub async fn run(&mut self) {
while !self.match_state.is_finished() {
let player_messages = self.prompt_players().await;