[][src]Struct genie_scx::ScenarioObject

pub struct ScenarioObject {
    pub position: (f32, f32, f32),
    pub id: i32,
    pub object_type: i16,
    pub state: u8,
    pub angle: f32,
    pub frame: i16,
    pub garrisoned_in: Option<i32>,
}

Fields

position: (f32, f32, f32)

Position (x, y, z) of this object.

id: i32

This object's unique ID.

object_type: i16

The type ID of this object.

state: u8

State value.

angle: f32

Radian angle this unit is facing.

frame: i16

Current animation frame.

garrisoned_in: Option<i32>

ID of the object this object is garrisoned in, or -1 when not garrisoned.

Methods

impl ScenarioObject[src]

pub fn from<R: Read>(input: &mut R, version: SCXVersion) -> Result<Self>[src]

pub fn write_to<W: Write>(
    &self,
    output: &mut W,
    version: SCXVersion
) -> Result<()>
[src]

Trait Implementations

impl Debug for ScenarioObject[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.