pub struct OnPlayerUsedCapsuleEvent {
pub item: LuaItemPrototype,
pub name: &'static str,
pub player_index: u32,
pub position: LuaAny,
pub quality: LuaQualityPrototype,
pub tick: u32,
}Expand description
Called when a player uses a capsule that results in some game action.
Fields§
§item: LuaItemPrototype§name: &'static str§player_index: u32§position: LuaAny§quality: LuaQualityPrototype§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerUsedCapsuleEvent
impl Clone for OnPlayerUsedCapsuleEvent
Source§fn clone(&self) -> OnPlayerUsedCapsuleEvent
fn clone(&self) -> OnPlayerUsedCapsuleEvent
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 OnPlayerUsedCapsuleEvent
Source§impl Debug for OnPlayerUsedCapsuleEvent
impl Debug for OnPlayerUsedCapsuleEvent
Source§impl Default for OnPlayerUsedCapsuleEvent
impl Default for OnPlayerUsedCapsuleEvent
Source§fn default() -> OnPlayerUsedCapsuleEvent
fn default() -> OnPlayerUsedCapsuleEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnPlayerUsedCapsuleEvent
impl PartialEq for OnPlayerUsedCapsuleEvent
impl StructuralPartialEq for OnPlayerUsedCapsuleEvent
Auto Trait Implementations§
impl Freeze for OnPlayerUsedCapsuleEvent
impl RefUnwindSafe for OnPlayerUsedCapsuleEvent
impl Send for OnPlayerUsedCapsuleEvent
impl Sync for OnPlayerUsedCapsuleEvent
impl Unpin for OnPlayerUsedCapsuleEvent
impl UnsafeUnpin for OnPlayerUsedCapsuleEvent
impl UnwindSafe for OnPlayerUsedCapsuleEvent
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