KillEaterScoreType

Enum KillEaterScoreType 

Source
#[repr(u32)]
pub enum KillEaterScoreType {
Show 94 variants Kills = 0, Ubers = 1, KillAssists = 2, SentryKills = 3, SoddenVictims = 4, SpiesShocked = 5, HeadsTaken = 6, Humiliations = 7, GiftsGiven = 8, DeathsFeigned = 9, 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, BuildingsSapped = 24, TickleFightsWon = 25, OpponentsFlattened = 26, 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, FoodItemsEaten = 50, BannersDeployed = 51, SecondsCloaked = 58, HealthDispensedToTeammates = 59, TeammatesTeleported = 60, TanksDestroyed = 61, LongDistanceKills = 62, KillEaterEventUniquePlayerKills = 63, PointsScored = 64, DoubleDonks = 65, TeammatesWhipped = 66, KillsDuringVictoryTime = 67, RobotScoutsDestroyed = 68, RobotSpiesDestroyed = 74, TauntKills = 77, UnusualWearingPlayerKills = 78, BurningPlayerKills = 79, KillstreaksEnded = 80, FreezecamTauntAppearances = 81, DamageDealt = 82, FiresSurvived = 83, AlliedHealingDone = 84, PointBlankKills = 85, WrangledSentryKills = 86, CosmeticKills = 87, FullHealthKills = 88, TauntingPlayerKills = 89, CarnivalKills = 90, CarnivalUnderworldKills = 91, CarnivalGamesWon = 92, NotCritNorMiniCritKills = 93, PlayerHits = 94, Assists = 95, ContractsCompleted = 96, ContractKills = 97, ContractPoints = 98, ContractBonusPoints = 99, TimesPerformed = 100, KillsAndAssistsDuringInvasionEvent = 101, KillsAndAssistsOn2FortInvasion = 102, KillsAndAssistsOnProbed = 103, KillsAndAssistsOnByre = 104, KillsAndAssistsOnWatergate = 105, SoulsCollected = 106, MerasmissionsCompleted = 107, HalloweenTransmutesPerformed = 108, PowerUpCanteensUsed = 109, ContractPointsEarned = 110, ContractPointsContributedToFriends = 111,
}
Expand description

Kill eater score type. Conversion from strings is not supported due to multiple variants having the same string representation. They can still be formatted into strings.

Variants§

§

Kills = 0

“Kills” used for most Strange weapons.

§

Ubers = 1

§

KillAssists = 2

§

SentryKills = 3

§

SoddenVictims = 4

§

SpiesShocked = 5

§

HeadsTaken = 6

§

Humiliations = 7

§

GiftsGiven = 8

§

DeathsFeigned = 9

§

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

§

BuildingsSapped = 24

§

TickleFightsWon = 25

§

OpponentsFlattened = 26

§

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

§

FoodItemsEaten = 50

§

BannersDeployed = 51

§

SecondsCloaked = 58

§

HealthDispensedToTeammates = 59

§

TeammatesTeleported = 60

§

TanksDestroyed = 61

§

LongDistanceKills = 62

§

KillEaterEventUniquePlayerKills = 63

§

PointsScored = 64

§

DoubleDonks = 65

§

TeammatesWhipped = 66

§

KillsDuringVictoryTime = 67

§

RobotScoutsDestroyed = 68

§

RobotSpiesDestroyed = 74

§

TauntKills = 77

§

UnusualWearingPlayerKills = 78

§

BurningPlayerKills = 79

§

KillstreaksEnded = 80

§

FreezecamTauntAppearances = 81

§

DamageDealt = 82

§

FiresSurvived = 83

§

AlliedHealingDone = 84

§

PointBlankKills = 85

§

WrangledSentryKills = 86

§

CosmeticKills = 87

“Kills” used for cosmetic items.

§

FullHealthKills = 88

§

TauntingPlayerKills = 89

§

CarnivalKills = 90

§

CarnivalUnderworldKills = 91

§

CarnivalGamesWon = 92

§

NotCritNorMiniCritKills = 93

§

PlayerHits = 94

§

Assists = 95

§

ContractsCompleted = 96

§

ContractKills = 97

“Kills” used for contracts.

§

ContractPoints = 98

§

ContractBonusPoints = 99

§

TimesPerformed = 100

§

KillsAndAssistsDuringInvasionEvent = 101

§

KillsAndAssistsOn2FortInvasion = 102

§

KillsAndAssistsOnProbed = 103

§

KillsAndAssistsOnByre = 104

§

KillsAndAssistsOnWatergate = 105

§

SoulsCollected = 106

§

MerasmissionsCompleted = 107

§

HalloweenTransmutesPerformed = 108

§

PowerUpCanteensUsed = 109

§

ContractPointsEarned = 110

§

ContractPointsContributedToFriends = 111

Implementations§

Source§

impl KillEaterScoreType

Source

pub const DEFINDEX_SCORE_TYPES: &'static [u32]

The defindex values for the kill eater score types.

Source

pub const DEFINDEX_USER_SCORE_TYPES: &'static [u32]

The defindex values for the kill eater user score types.

Source

pub fn strange_part(&self) -> Option<StrangePart>

Converts this KillEaterScoreType into its related StrangePart, if it exists.

Source

pub fn item_level(&self) -> ItemLevel

Converts this KillEaterScoreType into its related ItemLevel.

Trait Implementations§

Source§

impl Attributes for KillEaterScoreType

Source§

const ATTRIBUTES: &'static [AttributeDef]

Represents the “kill_eater_score_type”, “kill_eater_score_type_2”, “kill_eater_score_type_3”, “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>

Gets the attribute float value.

Source§

const DEFINDEX: &'static [u32]

The list of associated defindexes.
Source§

const USES_FLOAT_VALUE: bool = true

See Attribute::USES_FLOAT_VALUE. This applies to all attributes in the set.
Source§

fn attribute_value(&self) -> AttributeValue

Gets the attribute value.
Source§

fn get_attribute_def_by_defindex(defindex: u32) -> Option<&'static AttributeDef>

Gets the attribute definition for a given defindex.
Source§

impl Clone for KillEaterScoreType

Source§

fn clone(&self) -> KillEaterScoreType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for KillEaterScoreType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for KillEaterScoreType

Source§

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 KillEaterScoreType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl EnumCount for KillEaterScoreType

Source§

const COUNT: usize = 94usize

Source§

impl From<&KillEaterScoreType> for ItemLevel

Source§

fn from(score_type: &KillEaterScoreType) -> Self

Converts to this type from the input type.
Source§

impl From<KillEaterScoreType> for ItemLevel

Source§

fn from(score_type: KillEaterScoreType) -> Self

Converts to this type from the input type.
Source§

impl From<KillEaterScoreType> for u32

Source§

fn from(enum_value: KillEaterScoreType) -> Self

Converts to this type from the input type.
Source§

impl Hash for KillEaterScoreType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoEnumIterator for KillEaterScoreType

Source§

type Iterator = KillEaterScoreTypeIter

Source§

fn iter() -> KillEaterScoreTypeIter

Source§

impl Ord for KillEaterScoreType

Source§

fn cmp(&self, other: &KillEaterScoreType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for KillEaterScoreType

Source§

fn eq(&self, other: &KillEaterScoreType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for KillEaterScoreType

Source§

fn partial_cmp(&self, other: &KillEaterScoreType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for KillEaterScoreType

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<&KillEaterScoreType> for StrangePart

Source§

type Error = TryFromPrimitiveError<StrangePart>

The type returned in the event of a conversion error.
Source§

fn try_from(part: &KillEaterScoreType) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&StrangePart> for KillEaterScoreType

Source§

type Error = TryFromPrimitiveError<KillEaterScoreType>

The type returned in the event of a conversion error.
Source§

fn try_from(part: &StrangePart) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<KillEaterScoreType> for StrangePart

Source§

type Error = TryFromPrimitiveError<StrangePart>

The type returned in the event of a conversion error.
Source§

fn try_from(part: KillEaterScoreType) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<StrangePart> for KillEaterScoreType

Source§

type Error = TryFromPrimitiveError<KillEaterScoreType>

The type returned in the event of a conversion error.
Source§

fn try_from(part: StrangePart) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<u32> for KillEaterScoreType

Source§

type Error = TryFromPrimitiveError<KillEaterScoreType>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromIntAttributeValue for KillEaterScoreType

Source§

fn try_from_attribute_value(v: AttributeValue) -> Option<Self>

Attempts conversion from an attribute value.
Source§

fn try_from_attribute_float_value(v: f32) -> Option<Self>

Attempts conversion from an attribute float value.
Source§

impl TryFromPrimitive for KillEaterScoreType

Source§

impl Copy for KillEaterScoreType

Source§

impl Eq for KillEaterScoreType

Source§

impl StructuralPartialEq for KillEaterScoreType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,