#[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,
DefenderKills = 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,
PlayerHits = 94,
}
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
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
DefenderKills = 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
PlayerHits = 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 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 defindex(&self) -> u32
pub fn defindex(&self) -> u32
Gets the defindex
for the 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.
Sourcepub fn defindex_is_strange_part(defindex: u32) -> bool
pub fn defindex_is_strange_part(defindex: u32) -> bool
Checks if the defindex
belongs to a strange part.
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
kill_eater_user_score_type_1
kill_eater_user_score_type_2
kill_eater_user_score_type_3
impl Attributes for StrangePart
kill_eater_user_score_type_1 kill_eater_user_score_type_2 kill_eater_user_score_type_3
Source§impl Clone for StrangePart
impl Clone for StrangePart
Source§fn clone(&self) -> StrangePart
fn clone(&self) -> StrangePart
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more