pub struct OnTriggerCreatedEntityEvent {
pub entity: LuaEntity,
pub name: &'static str,
pub source: LuaEntity,
pub tick: u32,
}Expand description
Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined trigger_created_entity=true.
Fields§
§entity: LuaEntity§name: &'static str§source: LuaEntity§tick: u32Trait Implementations§
Source§impl Clone for OnTriggerCreatedEntityEvent
impl Clone for OnTriggerCreatedEntityEvent
Source§fn clone(&self) -> OnTriggerCreatedEntityEvent
fn clone(&self) -> OnTriggerCreatedEntityEvent
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 OnTriggerCreatedEntityEvent
Source§impl Debug for OnTriggerCreatedEntityEvent
impl Debug for OnTriggerCreatedEntityEvent
Source§impl Default for OnTriggerCreatedEntityEvent
impl Default for OnTriggerCreatedEntityEvent
Source§fn default() -> OnTriggerCreatedEntityEvent
fn default() -> OnTriggerCreatedEntityEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnTriggerCreatedEntityEvent
Auto Trait Implementations§
impl Freeze for OnTriggerCreatedEntityEvent
impl RefUnwindSafe for OnTriggerCreatedEntityEvent
impl Send for OnTriggerCreatedEntityEvent
impl Sync for OnTriggerCreatedEntityEvent
impl Unpin for OnTriggerCreatedEntityEvent
impl UnsafeUnpin for OnTriggerCreatedEntityEvent
impl UnwindSafe for OnTriggerCreatedEntityEvent
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