2023-03-22 12:49:54 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
2023-03-22 03:28:08 +00:00
|
|
|
|
2023-03-22 12:49:54 +00:00
|
|
|
/// Per-server constant data (configs) that stays the same for the server's
|
|
|
|
/// life.
|
2023-03-22 03:28:08 +00:00
|
|
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
2023-03-22 00:29:51 +00:00
|
|
|
pub struct ServerConstants {
|
2023-03-22 03:28:08 +00:00
|
|
|
pub day_cycle_coefficient: f64,
|
2023-03-22 04:32:05 +00:00
|
|
|
}
|
|
|
|
impl Default for ServerConstants {
|
|
|
|
fn default() -> Self {
|
|
|
|
ServerConstants {
|
|
|
|
// == 30.0 via server settings (the default)
|
|
|
|
day_cycle_coefficient: 24.0 * 2.0,
|
|
|
|
}
|
|
|
|
}
|
2023-03-22 12:49:54 +00:00
|
|
|
}
|