Skip to main content

XSector

Struct XSector 

Source
pub struct XSector {
Show 75 fields pub reference: i32, pub state: u8, pub busy: u32, pub data: u32, pub tx_id: u32, pub busy_wave_a: u8, pub busy_wave_b: u8, pub rx_id: u32, pub command: u8, pub trigger_on: bool, pub trigger_off: bool, pub busy_time_a: u32, pub wait_time_a: u32, pub rest_state: bool, pub interruptable: bool, pub amplitude: i32, pub freq: u32, pub retrigger_a: bool, pub retrigger_b: bool, pub phase: u32, pub wave: u8, pub shade_always: bool, pub shade_floor: bool, pub shade_ceiling: bool, pub shade_walls: bool, pub shade: i32, pub pan_always: bool, pub pan_floor: bool, pub pan_ceiling: bool, pub drag: bool, pub underwater: bool, pub depth: u8, pub pan_vel: u32, pub pan_angle: u32, pub decoupled: bool, pub trigger_once: bool, pub is_triggered: bool, pub key: u8, pub push: bool, pub vector: bool, pub reserved: bool, pub enter: bool, pub exit: bool, pub wallpush: bool, pub color: bool, pub busy_time_b: u32, pub wait_time_b: u32, pub stop_on: bool, pub stop_off: bool, pub ceil_pal: u8, pub off_ceil_z: i32, pub on_ceil_z: i32, pub off_floor_z: i32, pub on_floor_z: i32, pub marker0: u32, pub marker1: u32, pub crush: bool, pub ceil_xpan_frac: u8, pub ceil_ypan_frac: u8, pub floor_xpan_frac: u8, pub damage_type: u8, pub floor_pal: u8, pub floor_ypan_frac: u8, pub locked: bool, pub wind_vel: u32, pub wind_ang: u32, pub wind_always: bool, pub dude_lockout: bool, pub bob_theta: u32, pub bob_z_range: u32, pub bob_speed: i32, pub bob_always: bool, pub bob_floor: bool, pub bob_ceiling: bool, pub bob_rotate: bool,
}

Fields§

§reference: i32§state: u8§busy: u32§data: u32§tx_id: u32§busy_wave_a: u8§busy_wave_b: u8§rx_id: u32§command: u8§trigger_on: bool§trigger_off: bool§busy_time_a: u32§wait_time_a: u32§rest_state: bool§interruptable: bool§amplitude: i32§freq: u32§retrigger_a: bool§retrigger_b: bool§phase: u32§wave: u8§shade_always: bool§shade_floor: bool§shade_ceiling: bool§shade_walls: bool§shade: i32§pan_always: bool§pan_floor: bool§pan_ceiling: bool§drag: bool§underwater: bool§depth: u8§pan_vel: u32§pan_angle: u32§decoupled: bool§trigger_once: bool§is_triggered: bool§key: u8§push: bool§vector: bool§reserved: bool§enter: bool§exit: bool§wallpush: bool§color: bool§busy_time_b: u32§wait_time_b: u32§stop_on: bool§stop_off: bool§ceil_pal: u8§off_ceil_z: i32§on_ceil_z: i32§off_floor_z: i32§on_floor_z: i32§marker0: u32§marker1: u32§crush: bool§ceil_xpan_frac: u8§ceil_ypan_frac: u8§floor_xpan_frac: u8§damage_type: u8§floor_pal: u8§floor_ypan_frac: u8§locked: bool§wind_vel: u32§wind_ang: u32§wind_always: bool§dude_lockout: bool§bob_theta: u32§bob_z_range: u32§bob_speed: i32§bob_always: bool§bob_floor: bool§bob_ceiling: bool§bob_rotate: bool

Implementations§

Source§

impl XSector

Source

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

Trait Implementations§

Source§

impl Clone for XSector

Source§

fn clone(&self) -> XSector

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 XSector

Source§

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

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

impl Default for XSector

Source§

fn default() -> XSector

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

impl<'de> Deserialize<'de> for XSector

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 XSector

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.