pub struct LuaSurfaceCloneAreaParams {
pub clear_destination_decoratives: bool,
pub clear_destination_entities: bool,
pub clone_decoratives: bool,
pub clone_entities: bool,
pub clone_tiles: bool,
pub create_build_effect_smoke: bool,
pub destination_area: BoundingBox,
pub destination_force: LuaAny,
pub destination_surface: LuaAny,
pub expand_map: bool,
pub source_area: BoundingBox,
}Expand description
Clones the given area.
Entities are cloned in an order such that they can always be created, eg rails before trains.
Fields§
§clear_destination_decoratives: boolIf the destination decoratives should be cleared
clear_destination_entities: boolIf the destination entities should be cleared
clone_decoratives: boolIf decoratives should be cloned
clone_entities: boolIf entities should be cloned
clone_tiles: boolIf tiles should be cloned
create_build_effect_smoke: boolIf true, the building effect smoke will be shown around the new entities. Defaults to false.
destination_area: BoundingBox§destination_force: LuaAny§destination_surface: LuaAny§expand_map: boolIf the destination surface should be expanded when destination_area is outside current bounds. Defaults to false.
source_area: BoundingBoxTrait Implementations§
Source§impl Clone for LuaSurfaceCloneAreaParams
impl Clone for LuaSurfaceCloneAreaParams
Source§fn clone(&self) -> LuaSurfaceCloneAreaParams
fn clone(&self) -> LuaSurfaceCloneAreaParams
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 Debug for LuaSurfaceCloneAreaParams
impl Debug for LuaSurfaceCloneAreaParams
Source§impl Default for LuaSurfaceCloneAreaParams
impl Default for LuaSurfaceCloneAreaParams
Source§fn default() -> LuaSurfaceCloneAreaParams
fn default() -> LuaSurfaceCloneAreaParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCloneAreaParams
impl RefUnwindSafe for LuaSurfaceCloneAreaParams
impl Send for LuaSurfaceCloneAreaParams
impl Sync for LuaSurfaceCloneAreaParams
impl Unpin for LuaSurfaceCloneAreaParams
impl UnsafeUnpin for LuaSurfaceCloneAreaParams
impl UnwindSafe for LuaSurfaceCloneAreaParams
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