pub struct LuaEntityCloneParams {
pub create_build_effect_smoke: bool,
pub force: ForceID,
pub position: MapPosition,
pub surface: LuaSurface,
}Expand description
Clones this entity.
Fields§
§create_build_effect_smoke: boolIf false, the building effect smoke will not be shown around the new entity.
force: ForceID§position: MapPositionThe destination position
surface: LuaSurfaceThe destination surface
Trait Implementations§
Source§impl Clone for LuaEntityCloneParams
impl Clone for LuaEntityCloneParams
Source§fn clone(&self) -> LuaEntityCloneParams
fn clone(&self) -> LuaEntityCloneParams
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 LuaEntityCloneParams
impl Debug for LuaEntityCloneParams
Source§impl Default for LuaEntityCloneParams
impl Default for LuaEntityCloneParams
Source§fn default() -> LuaEntityCloneParams
fn default() -> LuaEntityCloneParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaEntityCloneParams
impl RefUnwindSafe for LuaEntityCloneParams
impl Send for LuaEntityCloneParams
impl Sync for LuaEntityCloneParams
impl Unpin for LuaEntityCloneParams
impl UnsafeUnpin for LuaEntityCloneParams
impl UnwindSafe for LuaEntityCloneParams
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