Module config

Source
Expand description

Loading of the config files, including serialization and deserialization.

Re-exports§

pub use board::BoardConfig;
pub use game::GameConfig;
pub use unit::UnitConfig;

Modules§

board
The board config
game
The game config
unit
The unit config

Structs§

ConfigSet
A struct encapsulating a set of configs needed to run a lobby.

Enums§

ConfigError

Constants§

CONFIG_BOARD
The filename of the board config file
CONFIG_DEFAULT
The default directory for searching for config files.
CONFIG_GAME
The filename of the game config file
CONFIG_PREFIX
The prefix every config directory needs to have
CONFIG_UNIT
The filename of the unit config file
CONFIG_VAR
The name of the environment variable which defines the location of the config files.

Functions§

load_configs
Loads all configurations from the path specified in the environment.
load_from 🔒