pub struct CurriculumConfig {Show 41 fields
pub allowed_card_sets: Vec<String>,
pub allow_character: bool,
pub allow_event: bool,
pub allow_climax: bool,
pub enable_clock_phase: bool,
pub enable_climax_phase: bool,
pub enable_side_attacks: bool,
pub enable_direct_attacks: bool,
pub enable_counters: bool,
pub enable_triggers: bool,
pub enable_trigger_soul: bool,
pub enable_trigger_draw: bool,
pub enable_trigger_shot: bool,
pub enable_trigger_bounce: bool,
pub enable_trigger_treasure: bool,
pub enable_trigger_gate: bool,
pub enable_trigger_standby: bool,
pub enable_on_reverse_triggers: bool,
pub enable_backup: bool,
pub enable_encore: bool,
pub enable_refresh_penalty: bool,
pub enable_level_up_choice: bool,
pub enable_activated_abilities: bool,
pub enable_continuous_modifiers: bool,
pub enable_approx_effects: bool,
pub enable_priority_windows: bool,
pub enable_visibility_policies: bool,
pub use_alternate_end_conditions: bool,
pub priority_autopick_single_action: bool,
pub priority_allow_pass: bool,
pub strict_priority_mode: bool,
pub enable_legacy_cost_order: bool,
pub enable_legacy_shot_damage_step_only: bool,
pub reduced_stage_mode: bool,
pub enforce_color_requirement: bool,
pub enforce_cost_requirement: bool,
pub allow_concede: bool,
pub reveal_opponent_hand_stock_counts: bool,
pub memory_is_public: bool,
pub max_no_progress_decisions: u32,
pub allowed_card_sets_cache: Option<HashSet<String>>,
}Expand description
Curriculum toggles for enabling/disabling engine subsystems.
Fields§
§allowed_card_sets: Vec<String>Optional whitelist of allowed card set identifiers.
allow_character: boolAllow character cards to be played.
allow_event: boolAllow event cards to be played.
allow_climax: boolAllow climax cards to be played.
enable_clock_phase: boolEnable the clock phase.
enable_climax_phase: boolEnable the climax phase.
enable_side_attacks: boolEnable side attacks.
enable_direct_attacks: boolEnable direct attacks.
enable_counters: boolEnable counter play.
enable_triggers: boolEnable trigger checks.
enable_trigger_soul: boolEnable soul trigger effect.
enable_trigger_draw: boolEnable draw trigger effect.
enable_trigger_shot: boolEnable shot trigger effect.
enable_trigger_bounce: boolEnable bounce trigger effect.
enable_trigger_treasure: boolEnable treasure trigger effect.
enable_trigger_gate: boolEnable gate trigger effect.
enable_trigger_standby: boolEnable standby trigger effect.
enable_on_reverse_triggers: boolEnable on-reverse triggers.
enable_backup: boolEnable backup effects.
enable_encore: boolEnable encore step.
enable_refresh_penalty: boolEnable refresh penalty on deck refresh.
enable_level_up_choice: boolEnable level-up choice step.
enable_activated_abilities: boolEnable activated abilities.
enable_continuous_modifiers: boolEnable continuous modifiers.
enable_approx_effects: boolEnable approximated non-combat effects listed in docs/approximation_policy.md.
enable_priority_windows: boolEnable explicit priority windows.
enable_visibility_policies: boolEnable visibility policies and sanitization.
use_alternate_end_conditions: boolUse alternate end-condition handling rules.
priority_autopick_single_action: boolAuto-pick when only one action is available in priority.
priority_allow_pass: boolAllow pass actions during priority windows.
strict_priority_mode: boolEnforce strict priority legality (debug/audit mode).
enable_legacy_cost_order: boolUse legacy fixed ability-cost step ordering.
enable_legacy_shot_damage_step_only: boolRestrict shot trigger bonus damage to battle-damage cancel timing only.
reduced_stage_mode: boolReduce stage size for curriculum experiments.
enforce_color_requirement: boolEnforce color requirements on play.
enforce_cost_requirement: boolEnforce cost requirements on play.
allow_concede: boolAllow players to concede.
reveal_opponent_hand_stock_counts: boolExpose opponent hand/stock counts in public observations.
memory_is_public: boolTreat memory zone as public information.
max_no_progress_decisions: u32Truncate early after this many consecutive no-progress decisions. 0 disables the check.
allowed_card_sets_cache: Option<HashSet<String>>Cached set whitelist derived from allowed_card_sets.
Implementations§
Source§impl CurriculumConfig
impl CurriculumConfig
Sourcepub fn rebuild_cache(&mut self)
pub fn rebuild_cache(&mut self)
Rebuild derived caches after changing configuration fields.
Trait Implementations§
Source§impl Clone for CurriculumConfig
impl Clone for CurriculumConfig
Source§fn clone(&self) -> CurriculumConfig
fn clone(&self) -> CurriculumConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CurriculumConfig
impl Debug for CurriculumConfig
Source§impl Default for CurriculumConfig
impl Default for CurriculumConfig
Source§impl<'de> Deserialize<'de> for CurriculumConfig
impl<'de> Deserialize<'de> for CurriculumConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CurriculumConfig
impl RefUnwindSafe for CurriculumConfig
impl Send for CurriculumConfig
impl Sync for CurriculumConfig
impl Unpin for CurriculumConfig
impl UnsafeUnpin for CurriculumConfig
impl UnwindSafe for CurriculumConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more