pub struct OnPlayerJoinedGameEvent {
pub name: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called after a player joins the game. This is not called when loading a save file in singleplayer, as the player doesn’t actually leave the game, and the save is just on pause until they rejoin.
Fields§
§name: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerJoinedGameEvent
impl Clone for OnPlayerJoinedGameEvent
Source§fn clone(&self) -> OnPlayerJoinedGameEvent
fn clone(&self) -> OnPlayerJoinedGameEvent
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 OnPlayerJoinedGameEvent
Source§impl Debug for OnPlayerJoinedGameEvent
impl Debug for OnPlayerJoinedGameEvent
Source§impl Default for OnPlayerJoinedGameEvent
impl Default for OnPlayerJoinedGameEvent
Source§fn default() -> OnPlayerJoinedGameEvent
fn default() -> OnPlayerJoinedGameEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnPlayerJoinedGameEvent
impl PartialEq for OnPlayerJoinedGameEvent
impl StructuralPartialEq for OnPlayerJoinedGameEvent
Auto Trait Implementations§
impl Freeze for OnPlayerJoinedGameEvent
impl RefUnwindSafe for OnPlayerJoinedGameEvent
impl Send for OnPlayerJoinedGameEvent
impl Sync for OnPlayerJoinedGameEvent
impl Unpin for OnPlayerJoinedGameEvent
impl UnsafeUnpin for OnPlayerJoinedGameEvent
impl UnwindSafe for OnPlayerJoinedGameEvent
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