Skip to main content

XSprite

Struct XSprite 

Source
pub struct XSprite {
Show 55 fields pub reference: i32, pub state: u8, pub busy: u32, pub tx_id: u32, pub rx_id: u32, pub command: u8, pub trigger_on: bool, pub trigger_off: bool, pub wave: u8, pub busy_time: u32, pub wait_time: u32, pub rest_state: bool, pub interruptable: bool, pub respawn_pending: u8, pub launch_team: bool, pub drop_msg: u8, pub decoupled: bool, pub trigger_once: bool, pub is_triggered: bool, pub key: u8, pub push: bool, pub vector: bool, pub impact: bool, pub pickup: bool, pub touch: bool, pub sight: bool, pub proximity: bool, pub launch_skill: u8, pub launch_single: bool, pub launch_bloodbath: bool, pub launch_coop: bool, pub dude_lockout: bool, pub data1: i32, pub data2: i32, pub data3: i32, pub goal_ang: u32, pub dodge_dir: i32, pub locked: bool, pub medium: u8, pub respawn: u8, pub data4: u32, pub lock_msg: u8, pub health: u32, pub dude_deaf: bool, pub dude_ambush: bool, pub dude_guard: bool, pub dude_flag4: bool, pub target: i32, pub target_x: i32, pub target_y: i32, pub target_z: i32, pub burn_time: u32, pub burn_source: i32, pub height: u32, pub state_timer: u32,
}

Fields§

§reference: i32§state: u8§busy: u32§tx_id: u32§rx_id: u32§command: u8§trigger_on: bool§trigger_off: bool§wave: u8§busy_time: u32§wait_time: u32§rest_state: bool§interruptable: bool§respawn_pending: u8§launch_team: bool§drop_msg: u8§decoupled: bool§trigger_once: bool§is_triggered: bool§key: u8§push: bool§vector: bool§impact: bool§pickup: bool§touch: bool§sight: bool§proximity: bool§launch_skill: u8

Bit per difficulty level (1..=5): sprite is excluded on that skill.

§launch_single: bool§launch_bloodbath: bool§launch_coop: bool§dude_lockout: bool§data1: i32§data2: i32§data3: i32§goal_ang: u32§dodge_dir: i32§locked: bool§medium: u8§respawn: u8§data4: u32§lock_msg: u8§health: u32§dude_deaf: bool§dude_ambush: bool§dude_guard: bool§dude_flag4: bool§target: i32§target_x: i32§target_y: i32§target_z: i32§burn_time: u32§burn_source: i32§height: u32§state_timer: u32

Implementations§

Source§

impl XSprite

Source

pub fn parse(b: &[u8]) -> Self

Trait Implementations§

Source§

impl Clone for XSprite

Source§

fn clone(&self) -> XSprite

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for XSprite

Source§

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

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

impl Default for XSprite

Source§

fn default() -> XSprite

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for XSprite

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for XSprite

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.