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,
}
Expand description
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 Copy for OPoint
impl Eq for OPoint
impl StructuralPartialEq for OPoint
Auto Trait Implementations§
impl Freeze for OPoint
impl RefUnwindSafe for OPoint
impl Send for OPoint
impl Sync for OPoint
impl Unpin for OPoint
impl UnwindSafe for OPoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more