Add ServerConstants and its module to common

This commit is contained in:
Sophia Waggoner 2023-03-21 17:29:51 -07:00
parent ea23d066c6
commit b649774316
2 changed files with 5 additions and 0 deletions

View File

@ -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"))] {

View File

@ -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,
}