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 moreSource§impl Debug for BehaviorKind
impl Debug for BehaviorKind
Source§impl<'de> Deserialize<'de> for BehaviorKind
impl<'de> Deserialize<'de> for BehaviorKind
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>,
Source§impl Hash for BehaviorKind
impl Hash for BehaviorKind
Source§impl Ord for BehaviorKind
impl Ord for BehaviorKind
Source§fn cmp(&self, other: &BehaviorKind) -> Ordering
fn cmp(&self, other: &BehaviorKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for BehaviorKind
impl PartialEq for BehaviorKind
Source§impl PartialOrd for BehaviorKind
impl PartialOrd for BehaviorKind
Source§impl Serialize for BehaviorKind
impl Serialize for BehaviorKind
impl Copy for BehaviorKind
impl Eq for BehaviorKind
impl StructuralPartialEq for BehaviorKind
Auto Trait Implementations§
impl Freeze for BehaviorKind
impl RefUnwindSafe for BehaviorKind
impl Send for BehaviorKind
impl Sync for BehaviorKind
impl Unpin for BehaviorKind
impl UnwindSafe for BehaviorKind
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].