Enum tf2_enum::StrangePart
source · #[repr(u32)]pub enum StrangePart {
Show 52 variants
ScoutsKilled = 10,
SnipersKilled = 11,
DemomenKilled = 13,
HeaviesKilled = 14,
PyrosKilled = 15,
SpiesKilled = 16,
EngineersKilled = 17,
MedicsKilled = 18,
BuildingsDestroyed = 19,
ProjectilesReflected = 20,
HeadshotKills = 21,
AirborneEnemyKills = 22,
GibKills = 23,
KillsUnderAFullMoon = 27,
Dominations = 28,
Revenges = 30,
PosthumousKills = 31,
TeammatesExtinguished = 32,
CriticalKills = 33,
KillsWhileExplosiveJumping = 34,
SappersRemoved = 36,
CloakedSpiesKilled = 37,
MedicsKilledThatHaveFullUberCharge = 38,
RobotsDestroyed = 39,
DefendersKilled = 47,
SubmergedEnemyKills = 48,
KillsWhileInvulnUberCharged = 49,
TanksDestroyed = 61,
LongDistanceKills = 62,
KillsDuringVictoryTime = 67,
RobotSpiesDestroyed = 74,
TauntKills = 77,
UnusualWearingPlayerKills = 78,
BurningPlayerKills = 79,
KillstreaksEnded = 80,
FreezecamTauntAppearances = 81,
DamageDealt = 82,
FiresSurvived = 83,
AlliedHealingDone = 84,
PointBlankKills = 85,
RobotsKilledDuringHalloween = 46,
KillsDuringHalloween = 45,
KillsWhileLowHealth = 44,
GiantRobotsDestroyed = 40,
Kills = 87,
FullHealthKills = 88,
SoldiersKilled = 12,
RobotScoutsDestroyed = 68,
TauntingPlayerKills = 89,
Assists = 95,
NotCritNorMiniCritKills = 93,
PlayersHit = 94,
}Expand description
Strange part. repr values are mapped to their kill_eater_score_type attribute value.
Variants§
ScoutsKilled = 10
SnipersKilled = 11
DemomenKilled = 13
HeaviesKilled = 14
PyrosKilled = 15
SpiesKilled = 16
EngineersKilled = 17
MedicsKilled = 18
BuildingsDestroyed = 19
ProjectilesReflected = 20
HeadshotKills = 21
AirborneEnemyKills = 22
GibKills = 23
KillsUnderAFullMoon = 27
Dominations = 28
Revenges = 30
PosthumousKills = 31
TeammatesExtinguished = 32
CriticalKills = 33
KillsWhileExplosiveJumping = 34
SappersRemoved = 36
CloakedSpiesKilled = 37
MedicsKilledThatHaveFullUberCharge = 38
RobotsDestroyed = 39
DefendersKilled = 47
SubmergedEnemyKills = 48
KillsWhileInvulnUberCharged = 49
TanksDestroyed = 61
LongDistanceKills = 62
KillsDuringVictoryTime = 67
RobotSpiesDestroyed = 74
TauntKills = 77
UnusualWearingPlayerKills = 78
BurningPlayerKills = 79
KillstreaksEnded = 80
FreezecamTauntAppearances = 81
DamageDealt = 82
FiresSurvived = 83
AlliedHealingDone = 84
PointBlankKills = 85
RobotsKilledDuringHalloween = 46
KillsDuringHalloween = 45
KillsWhileLowHealth = 44
GiantRobotsDestroyed = 40
Kills = 87
FullHealthKills = 88
SoldiersKilled = 12
RobotScoutsDestroyed = 68
TauntingPlayerKills = 89
Assists = 95
NotCritNorMiniCritKills = 93
PlayersHit = 94
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 for StrangePart
impl PartialEq 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 for StrangePart
impl PartialOrd 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