pub struct LuaEntityDestroyParams {
pub do_cliff_correction: bool,
pub player: PlayerIdentification,
pub raise_destroy: bool,
pub undo_index: u32,
}Expand description
Destroys the entity.
Not all entities can be destroyed - things such as rails under trains cannot be destroyed until the train is moved or destroyed.
Fields§
§do_cliff_correction: boolWhether neighbouring cliffs should be corrected. Defaults to false.
player: PlayerIdentificationThe player whose undo queue this action should be added to.
raise_destroy: boolIf true, script_raised_destroy will be called. Defaults to false.
undo_index: u32The index of the undo item to add this action to. An index of 0 creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
Trait Implementations§
Source§impl Clone for LuaEntityDestroyParams
impl Clone for LuaEntityDestroyParams
Source§fn clone(&self) -> LuaEntityDestroyParams
fn clone(&self) -> LuaEntityDestroyParams
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 LuaEntityDestroyParams
impl Debug for LuaEntityDestroyParams
Source§impl Default for LuaEntityDestroyParams
impl Default for LuaEntityDestroyParams
Source§fn default() -> LuaEntityDestroyParams
fn default() -> LuaEntityDestroyParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaEntityDestroyParams
impl RefUnwindSafe for LuaEntityDestroyParams
impl Send for LuaEntityDestroyParams
impl Sync for LuaEntityDestroyParams
impl Unpin for LuaEntityDestroyParams
impl UnsafeUnpin for LuaEntityDestroyParams
impl UnwindSafe for LuaEntityDestroyParams
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