pub enum QuestEvent {
Show 28 variants
EnemyKilled {
enemy_type: String,
enemy_id: Option<String>,
weapon_type: Option<String>,
is_stealth: bool,
},
ItemPickedUp {
item_id: String,
quantity: u32,
quality: f32,
},
PlayerMoved {
position: Vec3,
is_in_combat: bool,
},
DialogueStarted {
npc_id: String,
},
DialogueEnded {
npc_id: String,
ending: String,
},
NPCDied {
npc_id: String,
},
NPCDamaged {
npc_id: String,
health_percent: f32,
},
NPCMoved {
npc_id: String,
position: Vec3,
},
PuzzleSolved {
puzzle_id: String,
},
PuzzleAttempted {
puzzle_id: String,
success: bool,
},
ItemCrafted {
item_id: String,
quality: f32,
station_id: Option<String>,
},
AbilityUsed {
ability_id: String,
hit: bool,
target_type: Option<String>,
},
PhotoTaken {
subject_id: String,
quality: f32,
undetected: bool,
},
StructureBuilt {
structure_id: String,
progress: f32,
},
ResourcePlaced {
structure_id: String,
resource_id: String,
amount: u32,
},
BossPhaseCompleted {
boss_id: String,
phase: u32,
},
SecretFound {
secret_id: String,
},
ItemDelivered {
item_id: String,
recipient_id: String,
quantity: u32,
},
ClueFound {
clue_id: String,
},
ObjectRepaired {
object_id: String,
progress: f32,
},
DevicePlanted {
device_id: String,
object_id: String,
},
PlayerDetected,
PlayerDied,
TerminalHacked {
terminal_id: String,
progress: f32,
success: bool,
},
Pickpocketed {
target_id: String,
item_id: String,
detected: bool,
},
TimePassed {
delta: f32,
},
ObjectInteracted {
object_id: String,
},
CustomEvent {
name: String,
data: HashMap<String, String>,
},
}Variants§
EnemyKilled
ItemPickedUp
PlayerMoved
DialogueStarted
DialogueEnded
NPCDied
NPCDamaged
NPCMoved
PuzzleSolved
PuzzleAttempted
ItemCrafted
AbilityUsed
PhotoTaken
StructureBuilt
ResourcePlaced
BossPhaseCompleted
SecretFound
ItemDelivered
ClueFound
ObjectRepaired
DevicePlanted
PlayerDetected
PlayerDied
TerminalHacked
Pickpocketed
TimePassed
ObjectInteracted
CustomEvent
Trait Implementations§
Source§impl Clone for QuestEvent
impl Clone for QuestEvent
Auto Trait Implementations§
impl Freeze for QuestEvent
impl RefUnwindSafe for QuestEvent
impl Send for QuestEvent
impl Sync for QuestEvent
impl Unpin for QuestEvent
impl UnsafeUnpin for QuestEvent
impl UnwindSafe for QuestEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.