wicked-waifus-rs/wicked-waifus-game-server/src/config.rs

18 lines
491 B
Rust
Raw Normal View History

2024-09-11 16:37:46 +00:00
use serde::Deserialize;
use wicked_waifus_commons::config_util::TomlConfig;
use wicked_waifus_database::DatabaseSettings;
use wicked_waifus_network::config::ServiceEndPoint;
2024-09-11 16:37:46 +00:00
#[derive(Deserialize)]
pub struct ServiceConfig {
pub service_id: u32,
pub database: DatabaseSettings,
pub service_end_point: ServiceEndPoint,
pub gateway_end_point: ServiceEndPoint,
}
impl TomlConfig for ServiceConfig {
const DEFAULT_TOML: &str = include_str!("../gameserver.default.toml");
}