[−][src]Struct genie_scx::ScenarioObject
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]
&self,
output: &mut W,
version: SCXVersion
) -> Result<()>
Trait Implementations
Auto Trait Implementations
impl Send for ScenarioObject
impl Sync for ScenarioObject
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,