CurriculumConfig

Struct CurriculumConfig 

Source
pub struct CurriculumConfig {
Show 40 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 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: bool

Allow character cards to be played.

§allow_event: bool

Allow event cards to be played.

§allow_climax: bool

Allow climax cards to be played.

§enable_clock_phase: bool

Enable the clock phase.

§enable_climax_phase: bool

Enable the climax phase.

§enable_side_attacks: bool

Enable side attacks.

§enable_direct_attacks: bool

Enable direct attacks.

§enable_counters: bool

Enable counter play.

§enable_triggers: bool

Enable trigger checks.

§enable_trigger_soul: bool

Enable soul trigger effect.

§enable_trigger_draw: bool

Enable draw trigger effect.

§enable_trigger_shot: bool

Enable shot trigger effect.

§enable_trigger_bounce: bool

Enable bounce trigger effect.

§enable_trigger_treasure: bool

Enable treasure trigger effect.

§enable_trigger_gate: bool

Enable gate trigger effect.

§enable_trigger_standby: bool

Enable standby trigger effect.

§enable_on_reverse_triggers: bool

Enable on-reverse triggers.

§enable_backup: bool

Enable backup effects.

§enable_encore: bool

Enable encore step.

§enable_refresh_penalty: bool

Enable refresh penalty on deck refresh.

§enable_level_up_choice: bool

Enable level-up choice step.

§enable_activated_abilities: bool

Enable activated abilities.

§enable_continuous_modifiers: bool

Enable continuous modifiers.

§enable_approx_effects: bool

Enable approximated non-combat effects listed in docs/approximation_policy.md.

§enable_priority_windows: bool

Enable explicit priority windows.

§enable_visibility_policies: bool

Enable visibility policies and sanitization.

§use_alternate_end_conditions: bool

Use alternate end-condition handling rules.

§priority_autopick_single_action: bool

Auto-pick when only one action is available in priority.

§priority_allow_pass: bool

Allow pass actions during priority windows.

§strict_priority_mode: bool

Enforce strict priority legality (debug/audit mode).

§enable_legacy_cost_order: bool

Use legacy fixed ability-cost step ordering.

§enable_legacy_shot_damage_step_only: bool

Restrict shot trigger bonus damage to battle-damage cancel timing only.

§reduced_stage_mode: bool

Reduce stage size for curriculum experiments.

§enforce_color_requirement: bool

Enforce color requirements on play.

§enforce_cost_requirement: bool

Enforce cost requirements on play.

§allow_concede: bool

Allow players to concede.

§reveal_opponent_hand_stock_counts: bool

Expose opponent hand/stock counts in public observations.

§memory_is_public: bool

Treat memory zone as public information.

§allowed_card_sets_cache: Option<HashSet<String>>

Cached set whitelist derived from allowed_card_sets.

Implementations§

Source§

impl CurriculumConfig

Source

pub fn rebuild_cache(&mut self)

Rebuild derived caches after changing configuration fields.

Trait Implementations§

Source§

impl Clone for CurriculumConfig

Source§

fn clone(&self) -> CurriculumConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CurriculumConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CurriculumConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CurriculumConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CurriculumConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,