pub struct OnPlayerColorChangedEvent {
pub by_script: bool,
pub name: &'static str,
pub old_chat_color: Color,
pub old_color: Color,
pub player_index: u32,
pub tick: u32,
}Expand description
Called after a player’s color changes.
Fields§
§by_script: bool§name: &'static str§old_chat_color: Color§old_color: Color§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerColorChangedEvent
impl Clone for OnPlayerColorChangedEvent
Source§fn clone(&self) -> OnPlayerColorChangedEvent
fn clone(&self) -> OnPlayerColorChangedEvent
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 OnPlayerColorChangedEvent
Source§impl Debug for OnPlayerColorChangedEvent
impl Debug for OnPlayerColorChangedEvent
Source§impl Default for OnPlayerColorChangedEvent
impl Default for OnPlayerColorChangedEvent
Source§fn default() -> OnPlayerColorChangedEvent
fn default() -> OnPlayerColorChangedEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPlayerColorChangedEvent
Auto Trait Implementations§
impl Freeze for OnPlayerColorChangedEvent
impl RefUnwindSafe for OnPlayerColorChangedEvent
impl Send for OnPlayerColorChangedEvent
impl Sync for OnPlayerColorChangedEvent
impl Unpin for OnPlayerColorChangedEvent
impl UnsafeUnpin for OnPlayerColorChangedEvent
impl UnwindSafe for OnPlayerColorChangedEvent
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