[][src]Struct lf2_parse::OPoint

pub struct OPoint {
    pub kind: OPointKind,
    pub x: i32,
    pub y: i32,
    pub action: FrameNumberNext,
    pub d_vx: i64,
    pub d_vy: i64,
    pub object_id: ObjectId,
    pub facing: OPointFacing,
}

Spawns an object during a game.

See https://lf-empire.de/lf2-empire/data-changing/frame-elements/178-opoint-object-point

Fields

kind: OPointKind

Object spawning variants.

x: i32

X coordinate.

y: i32

Y coordinate.

action: FrameNumberNext

Frame number that the spawned object starts with.

d_vx: i64

Initial acceleration on the X axis.

Positive value moves forward in the direction the spawned object is facing. See OPoint::facing.

d_vy: i64

Initial acceleration on the Y axis.

Positive value is downwards.

object_id: ObjectId

ID of the object to spawn.

facing: OPointFacing

Number of objects to spawn, and their facing direction.

Trait Implementations

impl Clone for OPoint[src]

impl Copy for OPoint[src]

impl Debug for OPoint[src]

impl Default for OPoint[src]

impl Eq for OPoint[src]

impl PartialEq<OPoint> for OPoint[src]

impl StructuralEq for OPoint[src]

impl StructuralPartialEq for OPoint[src]

impl<'i> TryFrom<Pair<'i, Rule>> for OPoint[src]

type Error = Error<'i>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for OPoint

impl Send for OPoint

impl Sync for OPoint

impl Unpin for OPoint

impl UnwindSafe for OPoint

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.