From b6497743168e7ee5f2c9abbc071083bd24947ba5 Mon Sep 17 00:00:00 2001 From: Sophia Waggoner Date: Tue, 21 Mar 2023 17:29:51 -0700 Subject: [PATCH] Add ServerConstants and its module to common --- common/src/lib.rs | 1 + common/src/shared_server_config.rs | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 common/src/shared_server_config.rs diff --git a/common/src/lib.rs b/common/src/lib.rs index 301dafcf18..e41f2dc491 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -32,6 +32,7 @@ pub mod comp; pub mod consts; pub mod resources; pub mod uid; +pub mod shared_server_config; // NOTE: Comment out macro to get rustfmt to re-order these as needed. cfg_if! { if #[cfg(not(target_arch = "wasm32"))] { diff --git a/common/src/shared_server_config.rs b/common/src/shared_server_config.rs new file mode 100644 index 0000000000..c854011e6c --- /dev/null +++ b/common/src/shared_server_config.rs @@ -0,0 +1,4 @@ +/// Per-server constant data (configs) that stays the same for the server's life. +pub struct ServerConstants { + day_cycle_coefficient: f64, +} \ No newline at end of file