pub enum EffectRootKind {
ObjectiveComplete,
QuestComplete,
Trigger,
TrapPayload,
DialogueRespawn,
}Expand description
Which of the campaign’s effect roots a bundle is.
ALL is the closed set. Adding a variant is a rustc error in
EffectRootOwner::kind and in every consumer that matches on an owner, and
makes ALL’s length wrong until it is listed — so a new root cannot be added
without visiting the walk.
Variants§
ObjectiveComplete
A quest’s on_objective_complete[<objective>] bundle.
QuestComplete
A quest’s on_complete bundle.
Trigger
An environment trigger’s effects bundle.
TrapPayload
A trap’s spec-0022 payload bundle.
DialogueRespawn
A dialogue option’s set-checkpoint on_respawn bundle — a plain
Vec<QuestEffect> hanging off the dialogue stage. DialogueEffect
carries no gate, movement or actor verb of its own, which is the reasoning
that made every older walk stop at the quests stage; the bundle nested
inside one is quest-effect vocabulary all the same, and it is lowered
(into cp_on_respawn_<i>).
Implementations§
Source§impl EffectRootKind
impl EffectRootKind
Sourcepub const ALL: [EffectRootKind; 5]
pub const ALL: [EffectRootKind; 5]
Every root, in enumeration order. Not the visit order — see
for_each_effect_root, which interleaves R1/R2 per quest.
Trait Implementations§
Source§impl Clone for EffectRootKind
impl Clone for EffectRootKind
Source§fn clone(&self) -> EffectRootKind
fn clone(&self) -> EffectRootKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more