#[repr(u32)]pub enum StrangePart {
Show 52 variants
ScoutsKilled = 10,
SnipersKilled = 11,
SoldiersKilled = 12,
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,
GiantRobotsDestroyed = 40,
KillsWhileLowHealth = 44,
KillsDuringHalloween = 45,
RobotsKilledDuringHalloween = 46,
DefenderKills = 47,
SubmergedEnemyKills = 48,
KillsWhileInvulnUberCharged = 49,
TanksDestroyed = 61,
LongDistanceKills = 62,
KillsDuringVictoryTime = 67,
RobotScoutsDestroyed = 68,
RobotSpiesDestroyed = 74,
TauntKills = 77,
UnusualWearingPlayerKills = 78,
BurningPlayerKills = 79,
KillstreaksEnded = 80,
FreezecamTauntAppearances = 81,
DamageDealt = 82,
FiresSurvived = 83,
AlliedHealingDone = 84,
PointBlankKills = 85,
Kills = 87,
FullHealthKills = 88,
TauntingPlayerKills = 89,
NotCritNorMiniCritKills = 93,
PlayerHits = 94,
Assists = 95,
}Expand description
Strange part. repr values are mapped to their kill_eater_score_type attribute value. Strings
are the name of the kill_eater_score_type, not the name of the strange part.
Variants§
ScoutsKilled = 10
SnipersKilled = 11
SoldiersKilled = 12
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
GiantRobotsDestroyed = 40
KillsWhileLowHealth = 44
KillsDuringHalloween = 45
RobotsKilledDuringHalloween = 46
DefenderKills = 47
SubmergedEnemyKills = 48
KillsWhileInvulnUberCharged = 49
TanksDestroyed = 61
LongDistanceKills = 62
KillsDuringVictoryTime = 67
RobotScoutsDestroyed = 68
RobotSpiesDestroyed = 74
TauntKills = 77
UnusualWearingPlayerKills = 78
BurningPlayerKills = 79
KillstreaksEnded = 80
FreezecamTauntAppearances = 81
DamageDealt = 82
FiresSurvived = 83
AlliedHealingDone = 84
PointBlankKills = 85
Kills = 87
FullHealthKills = 88
TauntingPlayerKills = 89
NotCritNorMiniCritKills = 93
PlayerHits = 94
Assists = 95
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 strange_part_name(&self) -> &'static str
pub fn strange_part_name(&self) -> &'static str
Gets the name of the strange part for this StrangePart.
Sourcepub fn from_strange_part_name(name: &str) -> Option<StrangePart>
pub fn from_strange_part_name(name: &str) -> Option<StrangePart>
Gets the related StrangePart by its strange part name, if it exists.
Sourcepub fn is_cosmetic_part(&self) -> bool
pub fn is_cosmetic_part(&self) -> bool
Is this strange part for cosmetics?
Sourcepub fn kill_eater_score_type(&self) -> Option<KillEaterScoreType>
pub fn kill_eater_score_type(&self) -> Option<KillEaterScoreType>
Converts this StrangePart into its related KillEaterScoreType, if it exists.
Trait Implementations§
Source§impl Attributes for StrangePart
impl Attributes for StrangePart
Source§const ATTRIBUTES: &'static [AttributeDef]
const ATTRIBUTES: &'static [AttributeDef]
Represents the “kill_eater_user_score_type_1”, “kill_eater_user_score_type_2”, and “kill_eater_user_score_type_3”, attributes.
Source§fn attribute_float_value(&self) -> Option<f32>
fn attribute_float_value(&self) -> Option<f32>
Gets the attribute float value.
Source§const USES_FLOAT_VALUE: bool = true
const USES_FLOAT_VALUE: bool = true
Attribute::USES_FLOAT_VALUE. This applies to all attributes in the set.Source§fn attribute_value(&self) -> AttributeValue
fn attribute_value(&self) -> AttributeValue
Source§fn get_attribute_def_by_defindex(defindex: u32) -> Option<&'static AttributeDef>
fn get_attribute_def_by_defindex(defindex: u32) -> Option<&'static AttributeDef>
Source§impl Clone for StrangePart
impl Clone for StrangePart
Source§fn clone(&self) -> StrangePart
fn clone(&self) -> StrangePart
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StrangePart
Source§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>,
Source§impl Display for StrangePart
impl Display for StrangePart
impl Eq 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
Source§impl<'a> FromIterator<&'a StrangePart> for StrangePartSet
impl<'a> FromIterator<&'a StrangePart> for StrangePartSet
Source§fn from_iter<I: IntoIterator<Item = &'a StrangePart>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = &'a StrangePart>>(iter: I) -> Self
Source§impl FromIterator<StrangePart> for StrangePartSet
impl FromIterator<StrangePart> for StrangePartSet
Source§fn from_iter<I: IntoIterator<Item = StrangePart>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = StrangePart>>(iter: I) -> Self
Source§impl FromStr for StrangePart
impl FromStr for StrangePart
Source§impl HasItemDefindex for StrangePart
impl HasItemDefindex for StrangePart
Source§fn defindex(&self) -> u32
fn defindex(&self) -> u32
Gets the defindex for the StrangePart.
Source§fn from_defindex(defindex: u32) -> Option<Self>
fn from_defindex(defindex: u32) -> Option<Self>
Converts a defindex into its related StrangePart, if it exists.
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 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for StrangePart
impl PartialEq for StrangePart
Source§fn eq(&self, other: &StrangePart) -> bool
fn eq(&self, other: &StrangePart) -> bool
self and other values to be equal, and is used by ==.