Struct TESQuest

Source
#[repr(C)]
pub struct TESQuest {
Show 29 fields pub __base: BGSStoryManagerTreeForm, pub __base1: TESFullName, pub instanceData: BSTArray<*mut BGSQuestInstanceText>, pub currentInstanceID: u32, pub pad054: u32, pub aliases: BSTArray<*mut BGSBaseAlias>, pub refAliasMap: BSTHashMap<u32, ObjectRefHandle>, pub unk0A0: BSTHashMap<UnkKey, UnkValue>, pub aliasAccessLock: BSReadWriteLock, pub data: QUEST_DATA, pub eventID: QuestEvent, pub pad0E4: u32, pub executedStages: *mut BSSimpleList<TESQuestStage>, pub waitingStages: *mut BSSimpleList<*mut TESQuestStage>, pub objectives: BSSimpleList<*mut BGSQuestObjective>, pub objConditions: TESCondition, pub storyManagerConditions: TESCondition, pub branchedDialogue: [BSTHashMap<*mut BGSDialogueBranch, *mut BSTArray<*mut TESTopic>>; 2], pub topics: [BSTArray<*mut TESTopic>; 6], pub scenes: BSTArray<*mut BGSScene>, pub textGlobals: *mut BSTArray<*mut TESGlobal>, pub currentStage: u16, pub alreadyRun: bool, pub pad22B: u8, pub pad22C: u32, pub formEditorID: BSString, pub startEventData: *const BGSStoryEvent, pub promoteTask: NiPointer<QueuedPromoteQuestTask>, pub promotedRefs: BSTArray<ObjectRefHandle>,
}

Fields§

§__base: BGSStoryManagerTreeForm§__base1: TESFullName§instanceData: BSTArray<*mut BGSQuestInstanceText>§currentInstanceID: u32§pad054: u32§aliases: BSTArray<*mut BGSBaseAlias>§refAliasMap: BSTHashMap<u32, ObjectRefHandle>§unk0A0: BSTHashMap<UnkKey, UnkValue>§aliasAccessLock: BSReadWriteLock§data: QUEST_DATA§eventID: QuestEvent§pad0E4: u32§executedStages: *mut BSSimpleList<TESQuestStage>§waitingStages: *mut BSSimpleList<*mut TESQuestStage>§objectives: BSSimpleList<*mut BGSQuestObjective>§objConditions: TESCondition§storyManagerConditions: TESCondition§branchedDialogue: [BSTHashMap<*mut BGSDialogueBranch, *mut BSTArray<*mut TESTopic>>; 2]§topics: [BSTArray<*mut TESTopic>; 6]§scenes: BSTArray<*mut BGSScene>§textGlobals: *mut BSTArray<*mut TESGlobal>§currentStage: u16§alreadyRun: bool§pad22B: u8§pad22C: u32§formEditorID: BSString§startEventData: *const BGSStoryEvent§promoteTask: NiPointer<QueuedPromoteQuestTask>§promotedRefs: BSTArray<ObjectRefHandle>

Implementations§

Source§

impl TESQuest

Source

pub const RTTI: VariantID = RTTI_TESQuest

Source

pub const VTABLE: [VariantID; 2] = VTABLE_TESQuest

Source

pub const fn vtable(&self) -> &TESQuestVtbl

Get vtable this class.

§Panics

If vtable is null.

Source

pub fn create_ref_handle_by_alias_id( handle: &ObjectRefHandle, alias_id: u32, ) -> *mut ObjectRefHandle

Source

pub fn ensure_quest_started(result: &mut bool, start_now: bool) -> bool

Source

pub const fn get_current_stage_id(&self) -> u16

Source

pub const fn is_active(&self) -> bool

Source

pub const fn is_completed(&self) -> bool

Source

pub const fn is_enabled(&self) -> bool

Source

pub fn is_running(&self) -> bool

Source

pub fn is_starting(&self) -> bool

Source

pub const fn is_stopped(&self) -> bool

Source

pub fn is_stopping(&self) -> bool

Source

pub fn reset(&mut self)

Source

pub fn reset_and_update(&mut self)

Source

pub fn set_enabled(&mut self, value: bool)

Source

pub fn start(&mut self) -> bool

Source

pub const fn starts_enabled(&self) -> bool

Source

pub fn stop(&mut self)

Trait Implementations§

Source§

impl Debug for TESQuest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DerivedTESForm for TESQuest

Source§

const FORM_TYPE: FormType = FormType::Quest

Source§

fn get_form(&self) -> &TESForm

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more