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