pub enum BehaviorKind {
Show 13 variants
Event,
ConditionalProgress,
Currencies,
VassalReward,
ItemAttribute,
VassalLoyalty,
DefaultLoopTask,
StartCastAbility,
StartCastProjectile,
CastAbility,
CastProjectile,
FightStart,
AdditionalQuests,
}Expand description
One config-dispatched script slot. A category fixes the slot’s typed input/output contract.
The string form (via BehaviorKind::as_str / serde) is the stable key
used in the exported catalog and in the admin JSON-schema script_ref
annotation — keep it stable across renames.
Variants§
Event
Buff / entity effect behaviors → Vec<OverlordEvent> (Effect::script).
ConditionalProgress
Quest progress (QuestTemplate::progress_behavior) → i64.
Currencies
Reward / bundle-step currencies (BundleRawStep::script — the AFK
accrual slot).
VassalReward
Vassal / suzerain reward slots (reward_fn fields).
ItemAttribute
Item attribute value (Attribute::calculation_behavior) → i64.
VassalLoyalty
Vassal-task loyalty (VassalTaskTemplate::loyalty_fn) → i64.
DefaultLoopTask
Default loop-task selector (game_settings.default_loop_task_behavior)
→ quest id.
StartCastAbility
Ability start_behavior (cast wind-up → attack/run results).
StartCastProjectile
Projectile start_behavior (cast wind-up).
CastAbility
Ability script — the combat effect of casting an ability.
CastProjectile
Projectile script — the combat effect of a projectile landing.
FightStart
Fight start_behavior (init_fight + optional static buff).
AdditionalQuests
Quest additional_quests_behavior — follow-up quests / loop-task pacing
on claim.
Implementations§
Source§impl BehaviorKind
impl BehaviorKind
Sourcepub const ALL: &'static [BehaviorKind]
pub const ALL: &'static [BehaviorKind]
Every category, in stable order. Drives the catalog so the set of categories itself is snapshot-tested.
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Stable string key (matches serde snake_case). Used in the catalog and
the admin script_ref schema annotation.
Sourcepub fn index(self) -> usize
pub fn index(self) -> usize
Stable 0-based index: the position in BehaviorKind::ALL.
Trait Implementations§
Source§impl Clone for BehaviorKind
impl Clone for BehaviorKind
Source§fn clone(&self) -> BehaviorKind
fn clone(&self) -> BehaviorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more