pub struct GameConfig {
pub regenerate_board_each_round: bool,
pub grid_size: u8,
pub adventure_level: Option<u32>,
pub level_targets: Option<LevelTargets>,
pub num_rounds: Option<u8>,
pub bots: Vec<BotSpec>,
pub custom: Option<CustomMeta>,
pub events: Option<EventConfig>,
}Expand description
Configuration options for starting a new game.
These options customize game behavior for a single game session.
Fields§
§regenerate_board_each_round: boolIf true, regenerate the entire board at the start of each round. Default is false (board persists across rounds).
grid_size: u8Grid size (4 or 5). Determines which dice set is used. Default is 5 (standard 5x5 Big Boggle-style).
adventure_level: Option<u32>Adventure level ID (1..=50). Some signals this session is an
Adventure Mode run; the server pins bot difficulty, grid size, and
target thresholds from the level manifest. None = normal session.
level_targets: Option<LevelTargets>Score thresholds for 1/2/3-star completion of the current Adventure
level. Sent from server → client at session start so the UI can
render target chips. Only present when adventure_level.is_some().
num_rounds: Option<u8>Number of rounds for a custom game. None = server default (5).
Honored only for custom (sandbox) games; ignored for FFA.
bots: Vec<BotSpec>Bot seats to add (custom games only). Empty for FFA.
custom: Option<CustomMeta>Some marks this session as a custom (unranked) sandbox game.
Mirrors adventure_level — both gate the same ranked-skip paths.
events: Option<EventConfig>Random-event config for custom games. None for FFA/Adventure.
Trait Implementations§
Source§impl Clone for GameConfig
impl Clone for GameConfig
Source§fn clone(&self) -> GameConfig
fn clone(&self) -> GameConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more