pub struct LuaEntityReviveParams {
pub overflow: LuaInventory,
pub raise_revive: bool,
}Expand description
Revive a ghost, which turns it from a ghost into a real entity or tile.
Fields§
§overflow: LuaInventoryItems that would be deleted will be transferred to this inventory. Must be a script inventory or inventory of other entity. Inventory references obtained from proxy container are not allowed.
raise_revive: boolIf true, and an entity ghost; script_raised_revive will be called. Else if true, and a tile ghost; script_raised_set_tiles will be called.
Trait Implementations§
Source§impl Clone for LuaEntityReviveParams
impl Clone for LuaEntityReviveParams
Source§fn clone(&self) -> LuaEntityReviveParams
fn clone(&self) -> LuaEntityReviveParams
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 LuaEntityReviveParams
impl Debug for LuaEntityReviveParams
Source§impl Default for LuaEntityReviveParams
impl Default for LuaEntityReviveParams
Source§fn default() -> LuaEntityReviveParams
fn default() -> LuaEntityReviveParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaEntityReviveParams
impl RefUnwindSafe for LuaEntityReviveParams
impl Send for LuaEntityReviveParams
impl Sync for LuaEntityReviveParams
impl Unpin for LuaEntityReviveParams
impl UnsafeUnpin for LuaEntityReviveParams
impl UnwindSafe for LuaEntityReviveParams
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