mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Handle game event change situation in lobby queue
This commit is contained in:
@@ -74,6 +74,16 @@ pub struct ServerSettings {
|
||||
pub database: String,
|
||||
#[serde(default)]
|
||||
pub auto_signup: bool,
|
||||
#[serde(default)]
|
||||
pub queue_mode: QueueMode,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug, Default)]
|
||||
pub enum QueueMode {
|
||||
Upgrade, // move enqueued players into newer gamemode
|
||||
#[default]
|
||||
Notify, // send match change
|
||||
Ignore, // do nothing
|
||||
}
|
||||
|
||||
fn default_db_conn() -> String {
|
||||
@@ -84,5 +94,6 @@ fn default_server_conf() -> ServerSettings {
|
||||
ServerSettings {
|
||||
database: default_db_conn(),
|
||||
auto_signup: false,
|
||||
queue_mode: QueueMode::Notify,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user