pub struct QuestDebugTools {Show 15 fields
pub log: VecDeque<DebugLogEntry>,
pub max_log: usize,
pub breakpoints: HashSet<String>,
pub watch_objectives: Vec<String>,
pub force_complete_queue: VecDeque<String>,
pub force_fail_queue: VecDeque<String>,
pub override_conditions: HashMap<String, bool>,
pub reputation_inspector: ReputationInspector,
pub condition_tester: ConditionTester,
pub objective_overrides: HashMap<String, ObjectiveOverride>,
pub slow_motion: bool,
pub slow_motion_scale: f32,
pub record_events: bool,
pub recorded_events: Vec<QuestEvent>,
pub current_scope_dump: Vec<(String, String)>,
}Fields§
§log: VecDeque<DebugLogEntry>§max_log: usize§breakpoints: HashSet<String>§watch_objectives: Vec<String>§force_complete_queue: VecDeque<String>§force_fail_queue: VecDeque<String>§override_conditions: HashMap<String, bool>§reputation_inspector: ReputationInspector§condition_tester: ConditionTester§objective_overrides: HashMap<String, ObjectiveOverride>§slow_motion: bool§slow_motion_scale: f32§record_events: bool§recorded_events: Vec<QuestEvent>§current_scope_dump: Vec<(String, String)>Implementations§
Source§impl QuestDebugTools
impl QuestDebugTools
pub fn new() -> Self
pub fn log( &mut self, level: LogLevel, message: &str, quest_id: Option<&str>, source: &str, )
pub fn force_complete_quest(&mut self, quest_id: &str)
pub fn force_fail_quest(&mut self, quest_id: &str)
pub fn set_condition_override(&mut self, condition_id: &str, value: bool)
pub fn clear_condition_override(&mut self, condition_id: &str)
pub fn override_objective( &mut self, obj_id: &str, status: ObjectiveStatus, progress: Option<f32>, )
pub fn clear_override(&mut self, obj_id: &str)
pub fn dump_state(&mut self, state: &QuestStateStore)
pub fn get_log_for_quest(&self, quest_id: &str) -> Vec<&DebugLogEntry>
pub fn clear_log(&mut self)
pub fn get_error_count(&self) -> usize
pub fn get_warning_count(&self) -> usize
Trait Implementations§
Source§impl Clone for QuestDebugTools
impl Clone for QuestDebugTools
Auto Trait Implementations§
impl Freeze for QuestDebugTools
impl RefUnwindSafe for QuestDebugTools
impl Send for QuestDebugTools
impl Sync for QuestDebugTools
impl Unpin for QuestDebugTools
impl UnsafeUnpin for QuestDebugTools
impl UnwindSafe for QuestDebugTools
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.