pub struct LuaSurfaceCancelDeconstructAreaParams {
pub area: BoundingBox,
pub force: LuaAny,
pub item: LuaItemStack,
pub player: LuaAny,
pub skip_fog_of_war: bool,
pub super_forced: bool,
pub undo_index: u32,
}Expand description
Cancel a deconstruction order.
Fields§
§area: BoundingBoxThe area to cancel deconstruction orders in.
force: LuaAnyThe force whose deconstruction orders to cancel.
item: LuaItemStackThe deconstruction item to use if any.
player: LuaAnyThe player to set the last_user to, if any. Also the player whose undo queue this action should be added to.
skip_fog_of_war: boolIf chunks covered by fog-of-war are skipped. Defaults to false.
super_forced: boolIf the cancel deconstruction is super-forced. 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 LuaSurfaceCancelDeconstructAreaParams
impl Clone for LuaSurfaceCancelDeconstructAreaParams
Source§fn clone(&self) -> LuaSurfaceCancelDeconstructAreaParams
fn clone(&self) -> LuaSurfaceCancelDeconstructAreaParams
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 LuaSurfaceCancelDeconstructAreaParams
impl Default for LuaSurfaceCancelDeconstructAreaParams
Source§fn default() -> LuaSurfaceCancelDeconstructAreaParams
fn default() -> LuaSurfaceCancelDeconstructAreaParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaSurfaceCancelDeconstructAreaParams
impl RefUnwindSafe for LuaSurfaceCancelDeconstructAreaParams
impl Send for LuaSurfaceCancelDeconstructAreaParams
impl Sync for LuaSurfaceCancelDeconstructAreaParams
impl Unpin for LuaSurfaceCancelDeconstructAreaParams
impl UnsafeUnpin for LuaSurfaceCancelDeconstructAreaParams
impl UnwindSafe for LuaSurfaceCancelDeconstructAreaParams
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