pub struct OnTowerMinedPlantEvent {
pub buffer: LuaInventory,
pub name: &'static str,
pub plant: LuaEntity,
pub tick: u32,
pub tower: LuaEntity,
}Expand description
Called after the results of an entity being mined are collected just before the entity is destroyed.
After this event any items in the buffer will be transferred into the tower as if they came from mining the entity.
The buffer inventory is special in that it’s only valid during this event and has a dynamic size expanding as more items are transferred into it.
Fields§
§buffer: LuaInventory§name: &'static str§plant: LuaEntity§tick: u32§tower: LuaEntityTrait Implementations§
Source§impl Clone for OnTowerMinedPlantEvent
impl Clone for OnTowerMinedPlantEvent
Source§fn clone(&self) -> OnTowerMinedPlantEvent
fn clone(&self) -> OnTowerMinedPlantEvent
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 moreimpl Copy for OnTowerMinedPlantEvent
Source§impl Debug for OnTowerMinedPlantEvent
impl Debug for OnTowerMinedPlantEvent
Source§impl Default for OnTowerMinedPlantEvent
impl Default for OnTowerMinedPlantEvent
Source§fn default() -> OnTowerMinedPlantEvent
fn default() -> OnTowerMinedPlantEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnTowerMinedPlantEvent
impl PartialEq for OnTowerMinedPlantEvent
impl StructuralPartialEq for OnTowerMinedPlantEvent
Auto Trait Implementations§
impl Freeze for OnTowerMinedPlantEvent
impl RefUnwindSafe for OnTowerMinedPlantEvent
impl Send for OnTowerMinedPlantEvent
impl Sync for OnTowerMinedPlantEvent
impl Unpin for OnTowerMinedPlantEvent
impl UnsafeUnpin for OnTowerMinedPlantEvent
impl UnwindSafe for OnTowerMinedPlantEvent
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