[−][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 Sync for ScenarioObject
impl Send for ScenarioObject
impl Unpin for ScenarioObject
impl RefUnwindSafe for ScenarioObject
impl UnwindSafe for ScenarioObject
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,