mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add support for matchmaker sending clients off to game server
This commit is contained in:
@@ -12,6 +12,8 @@ pub struct BattleConfig {
|
||||
pub singleplayer: super::SingleplayerConfig,
|
||||
#[serde(default = "default_rotation")]
|
||||
pub rotation: GameEventSequence,
|
||||
#[serde(default = "default_multiplayer")]
|
||||
pub multiplayer: super::MultiplayerConfig,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
@@ -472,3 +474,11 @@ fn default_rotation() -> GameEventSequence {
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
fn default_multiplayer() -> super::MultiplayerConfig {
|
||||
super::MultiplayerConfig {
|
||||
players_per_game: 1,
|
||||
enabled: true,
|
||||
network: super::multiplayer::default_net_conf(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user