[−][src]Struct genie_scx::ScenarioObject
An object placed in the scenario.
Fields
position: (f32, f32, f32)
Position (x, y, z) of this object.
id: i32
This object's unique ID.
object_type: UnitTypeID
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.
Implementations
impl ScenarioObject
[src]
pub fn read_from(input: impl Read, version: SCXVersion) -> Result<Self>
[src]
pub fn write_to(&self, output: impl Write, version: SCXVersion) -> Result<()>
[src]
Trait Implementations
impl Clone for ScenarioObject
[src]
fn clone(&self) -> ScenarioObject
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScenarioObject
[src]
impl Default for ScenarioObject
[src]
fn default() -> ScenarioObject
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScenarioObject
impl Send for ScenarioObject
impl Sync for ScenarioObject
impl Unpin for ScenarioObject
impl UnwindSafe for ScenarioObject
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,