#[repr(C)]pub struct QuestData {
pub header: Header,
pub entity: Entity,
pub quest: KnowledgeId,
}Expand description
The data of the QuestCompleted event.
§Examples
use enshwick::abi::{Header, QuestData};
let done = QuestData { header: Header::of::<QuestData>(), entity: enshwick::Entity(2), quest: enshwick::knowledge::KnowledgeId::new(0x51) };
assert_eq!(done.entity, enshwick::Entity(2));Fields§
§header: HeaderSize and version of this struct.
entity: EntityThe player’s character.
quest: KnowledgeIdThe quest’s id, a player knowledge id.
Trait Implementations§
impl Copy for QuestData
impl Eq for QuestData
impl Headed for QuestData
Source§impl IntoScript for QuestData
impl IntoScript for QuestData
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Available on crate feature
unstable only.The value as
Typed::TY shapes it.impl StructuralPartialEq for QuestData
Auto Trait Implementations§
impl Freeze for QuestData
impl RefUnwindSafe for QuestData
impl Send for QuestData
impl Sync for QuestData
impl Unpin for QuestData
impl UnsafeUnpin for QuestData
impl UnwindSafe for QuestData
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