pub enum DiedEvent {
None(DiedEventNone),
IndividualKill(DiedEventIndividualKill),
WingKill(DiedEventWingKill),
}
Expand description
Fired when the player dies. Depending on the way the player died the event contains different information.
Variants§
None(DiedEventNone)
The default value that does not contain any information related to the way the player died.
IndividualKill(DiedEventIndividualKill)
When the player is killed by someone. This can be either be players or NPCs like Thargoids.
WingKill(DiedEventWingKill)
When the player is killed by a wing of other commanders.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiedEvent
impl<'de> Deserialize<'de> for DiedEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DiedEvent
Auto Trait Implementations§
impl Freeze for DiedEvent
impl RefUnwindSafe for DiedEvent
impl Send for DiedEvent
impl Sync for DiedEvent
impl Unpin for DiedEvent
impl UnwindSafe for DiedEvent
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