pub struct LuaSurfaceCloneEntitiesParams {
pub create_build_effect_smoke: bool,
pub destination_force: LuaAny,
pub destination_offset: Vector,
pub destination_surface: LuaAny,
pub entities: Vec<LuaEntity>,
pub snap_to_grid: bool,
}Expand description
Clones the given entities.
Entities are cloned in an order such that they can always be created, eg rails before trains.
Fields§
§create_build_effect_smoke: boolIf true, the building effect smoke will be shown around the new entities.
destination_force: LuaAny§destination_offset: Vector§destination_surface: LuaAny§entities: Vec<LuaEntity>§snap_to_grid: boolTrait Implementations§
Source§impl Clone for LuaSurfaceCloneEntitiesParams
impl Clone for LuaSurfaceCloneEntitiesParams
Source§fn clone(&self) -> LuaSurfaceCloneEntitiesParams
fn clone(&self) -> LuaSurfaceCloneEntitiesParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for LuaSurfaceCloneEntitiesParams
impl Default for LuaSurfaceCloneEntitiesParams
Source§fn default() -> LuaSurfaceCloneEntitiesParams
fn default() -> LuaSurfaceCloneEntitiesParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCloneEntitiesParams
impl RefUnwindSafe for LuaSurfaceCloneEntitiesParams
impl Send for LuaSurfaceCloneEntitiesParams
impl Sync for LuaSurfaceCloneEntitiesParams
impl Unpin for LuaSurfaceCloneEntitiesParams
impl UnsafeUnpin for LuaSurfaceCloneEntitiesParams
impl UnwindSafe for LuaSurfaceCloneEntitiesParams
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