Enum tf2_enum::StrangePart
source · #[repr(u32)]pub enum StrangePart {
Show 52 variants
ScoutsKilled,
SnipersKilled,
DemomenKilled,
HeaviesKilled,
PyrosKilled,
SpiesKilled,
EngineersKilled,
MedicsKilled,
BuildingsDestroyed,
ProjectilesReflected,
HeadshotKills,
AirborneEnemyKills,
GibKills,
KillsUnderAFullMoon,
Dominations,
Revenges,
PosthumousKills,
TeammatesExtinguished,
CriticalKills,
KillsWhileExplosiveJumping,
SappersRemoved,
CloakedSpiesKilled,
MedicsKilledThatHaveFullUberCharge,
RobotsDestroyed,
DefendersKilled,
SubmergedEnemyKills,
KillsWhileInvulnUberCharged,
TanksDestroyed,
LongDistanceKills,
KillsDuringVictoryTime,
RobotSpiesDestroyed,
TauntKills,
UnusualWearingPlayerKills,
BurningPlayerKills,
KillstreaksEnded,
FreezecamTauntAppearances,
DamageDealt,
FiresSurvived,
AlliedHealingDone,
PointBlankKills,
RobotsKilledDuringHalloween,
KillsDuringHalloween,
KillsWhileLowHealth,
GiantRobotsDestroyed,
Kills,
FullHealthKills,
SoldiersKilled,
RobotScoutsDestroyed,
TauntingPlayerKills,
Assists,
NotCritNorMiniCritKills,
PlayersHit,
}
Expand description
Strange part. repr
values are mapped to their kill_eater_score_type
attribute value.
Variants§
ScoutsKilled
SnipersKilled
DemomenKilled
HeaviesKilled
PyrosKilled
SpiesKilled
EngineersKilled
MedicsKilled
BuildingsDestroyed
ProjectilesReflected
HeadshotKills
AirborneEnemyKills
GibKills
KillsUnderAFullMoon
Dominations
Revenges
PosthumousKills
TeammatesExtinguished
CriticalKills
KillsWhileExplosiveJumping
SappersRemoved
CloakedSpiesKilled
MedicsKilledThatHaveFullUberCharge
RobotsDestroyed
DefendersKilled
SubmergedEnemyKills
KillsWhileInvulnUberCharged
TanksDestroyed
LongDistanceKills
KillsDuringVictoryTime
RobotSpiesDestroyed
TauntKills
UnusualWearingPlayerKills
BurningPlayerKills
KillstreaksEnded
FreezecamTauntAppearances
DamageDealt
FiresSurvived
AlliedHealingDone
PointBlankKills
RobotsKilledDuringHalloween
KillsDuringHalloween
KillsWhileLowHealth
GiantRobotsDestroyed
Kills
FullHealthKills
SoldiersKilled
RobotScoutsDestroyed
TauntingPlayerKills
Assists
NotCritNorMiniCritKills
PlayersHit
Implementations§
source§impl StrangePart
impl StrangePart
sourcepub fn score_type(&self) -> u32
pub fn score_type(&self) -> u32
Gets the kill_eater_score_type
attribute value for this StrangePart
.
sourcepub fn from_score_type(score_type: u32) -> Option<Self>
pub fn from_score_type(score_type: u32) -> Option<Self>
Converts a kill_eater_score_type
attribute value into a StrangePart
.
sourcepub fn defindex(&self) -> u32
pub fn defindex(&self) -> u32
Gets the defindex
related to this StrangePart
.
sourcepub fn from_defindex(defindex: u32) -> Option<Self>
pub fn from_defindex(defindex: u32) -> Option<Self>
Converts a defindex
into its related StrangePart
, if it exists.
Trait Implementations§
source§impl Attributes for StrangePart
impl Attributes for StrangePart
source§impl Clone for StrangePart
impl Clone for StrangePart
source§fn clone(&self) -> StrangePart
fn clone(&self) -> StrangePart
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StrangePart
impl Debug for StrangePart
source§impl<'de> Deserialize<'de> for StrangePart
impl<'de> Deserialize<'de> for StrangePart
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
source§impl Display for StrangePart
impl Display for StrangePart
source§impl From<StrangePart> for u32
impl From<StrangePart> for u32
source§fn from(enum_value: StrangePart) -> Self
fn from(enum_value: StrangePart) -> Self
Converts to this type from the input type.
source§impl FromStr for StrangePart
impl FromStr for StrangePart
source§impl Hash for StrangePart
impl Hash for StrangePart
source§impl IntoEnumIterator for StrangePart
impl IntoEnumIterator for StrangePart
source§impl Ord for StrangePart
impl Ord for StrangePart
source§fn cmp(&self, other: &StrangePart) -> Ordering
fn cmp(&self, other: &StrangePart) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StrangePart> for StrangePart
impl PartialEq<StrangePart> for StrangePart
source§fn eq(&self, other: &StrangePart) -> bool
fn eq(&self, other: &StrangePart) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StrangePart> for StrangePart
impl PartialOrd<StrangePart> for StrangePart
source§fn partial_cmp(&self, other: &StrangePart) -> Option<Ordering>
fn partial_cmp(&self, other: &StrangePart) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for StrangePart
impl Serialize for StrangePart
source§impl TryFrom<u32> for StrangePart
impl TryFrom<u32> for StrangePart
§type Error = TryFromPrimitiveError<StrangePart>
type Error = TryFromPrimitiveError<StrangePart>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for StrangePart
impl TryFromPrimitive for StrangePart
impl Copy for StrangePart
impl Eq for StrangePart
impl StructuralEq for StrangePart
impl StructuralPartialEq for StrangePart
Auto Trait Implementations§
impl RefUnwindSafe for StrangePart
impl Send for StrangePart
impl Sync for StrangePart
impl Unpin for StrangePart
impl UnwindSafe for StrangePart
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