pub enum BossEvent {
Show 17 variants
PhaseChange {
new_phase: u32,
transition: PhaseTransition,
dialogue: String,
},
SpecialAbility {
ability: SpecialAbility,
description: String,
},
Dialogue(String),
MusicChange(MusicType),
ArenaModification(ArenaMod),
VictoryReward {
boss_type: BossType,
loot: Vec<BossLootEntry>,
xp_reward: u64,
},
UiErased(EraseTarget),
UiRestored(Vec<EraseTarget>),
HydraSplit {
parent_id: u32,
child_ids: (u32, u32),
},
QuantumCollapse(QuantumForm),
RulesChanged(String),
AbilityLocked(u32),
CommitteeVoteResult(CommitteeAction),
ArenaShrunk {
direction: String,
remaining_fraction: f32,
},
PuzzleGenerated(Vec<u32>),
PuzzleSolved,
BossDefeated(BossType),
}Expand description
Events emitted during a boss encounter.
Variants§
PhaseChange
Boss entered a new phase.
SpecialAbility
Boss used a special ability.
Dialogue(String)
Boss speaks dialogue.
MusicChange(MusicType)
Music should change.
ArenaModification(ArenaMod)
Arena was modified.
VictoryReward
Boss is defeated — victory rewards.
UiErased(EraseTarget)
UI element erased (Null boss).
UiRestored(Vec<EraseTarget>)
UI elements restored (Null boss death).
HydraSplit
Hydra split into new heads.
QuantumCollapse(QuantumForm)
Quantum form collapsed.
RulesChanged(String)
Rules changed (Ouroboros/ChaosWeaver).
AbilityLocked(u32)
Ability locked (Null boss).
CommitteeVoteResult(CommitteeAction)
Committee vote result.
ArenaShrunk
Arena shrunk (Void Serpent).
PuzzleGenerated(Vec<u32>)
Puzzle generated (PrimeFactorial).
PuzzleSolved
Puzzle solved.
BossDefeated(BossType)
Boss defeated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BossEvent
impl RefUnwindSafe for BossEvent
impl Send for BossEvent
impl Sync for BossEvent
impl Unpin for BossEvent
impl UnsafeUnpin for BossEvent
impl UnwindSafe for BossEvent
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.