pub struct OnEntitySpawnedEvent {
pub entity: LuaEntity,
pub name: &'static str,
pub spawner: LuaEntity,
pub tick: u32,
}Expand description
Called when an entity is spawned by a EnemySpawner
Fields§
§entity: LuaEntity§name: &'static str§spawner: LuaEntity§tick: u32Trait Implementations§
Source§impl Clone for OnEntitySpawnedEvent
impl Clone for OnEntitySpawnedEvent
Source§fn clone(&self) -> OnEntitySpawnedEvent
fn clone(&self) -> OnEntitySpawnedEvent
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 OnEntitySpawnedEvent
Source§impl Debug for OnEntitySpawnedEvent
impl Debug for OnEntitySpawnedEvent
Source§impl Default for OnEntitySpawnedEvent
impl Default for OnEntitySpawnedEvent
Source§fn default() -> OnEntitySpawnedEvent
fn default() -> OnEntitySpawnedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnEntitySpawnedEvent
impl PartialEq for OnEntitySpawnedEvent
impl StructuralPartialEq for OnEntitySpawnedEvent
Auto Trait Implementations§
impl Freeze for OnEntitySpawnedEvent
impl RefUnwindSafe for OnEntitySpawnedEvent
impl Send for OnEntitySpawnedEvent
impl Sync for OnEntitySpawnedEvent
impl Unpin for OnEntitySpawnedEvent
impl UnsafeUnpin for OnEntitySpawnedEvent
impl UnwindSafe for OnEntitySpawnedEvent
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