pub enum Spell {
Show 16 variants
TeamSpiritFootprints,
GangreenFootprints,
CorpseGrayFootprints,
ViolentVioletFootprints,
RottenOrangeFootprints,
BruisedPurpleFootprints,
HeadlessHorseshoes,
DieJob,
ChromaticCorruption,
PutrescentPigmentation,
SpectralSpectrum,
SinisterStaining,
VoicesFromBelow,
PumpkinBombs,
HalloweenFire,
Exorcism,
}
Expand description
Spell. In the schema, spells aren’t grouped together because they have different attributes, though in practice they’re often treated as if they are.
Variants§
TeamSpiritFootprints
GangreenFootprints
CorpseGrayFootprints
ViolentVioletFootprints
RottenOrangeFootprints
BruisedPurpleFootprints
HeadlessHorseshoes
DieJob
ChromaticCorruption
PutrescentPigmentation
SpectralSpectrum
SinisterStaining
VoicesFromBelow
PumpkinBombs
HalloweenFire
Exorcism
Implementations§
Source§impl Spell
impl Spell
Sourcepub const DEFINDEX_PAINT: u32 = 1_004u32
pub const DEFINDEX_PAINT: u32 = 1_004u32
The attribute defindex
for paint spells.
Sourcepub const DEFINDEX_FOOTPRINTS: u32 = 1_005u32
pub const DEFINDEX_FOOTPRINTS: u32 = 1_005u32
The attribute defindex
for footprints spells.
Sourcepub const DEFINDEX_VOICES_FROM_BELOW: u32 = 1_006u32
pub const DEFINDEX_VOICES_FROM_BELOW: u32 = 1_006u32
The attribute defindex
for voices from below spell.
Sourcepub const DEFINDEX_PUMPKIN_BOMBS: u32 = 1_007u32
pub const DEFINDEX_PUMPKIN_BOMBS: u32 = 1_007u32
The attribute defindex
for pumpkin bombs spell.
Sourcepub const DEFINDEX_HALLOWEEN_FIRE: u32 = 1_008u32
pub const DEFINDEX_HALLOWEEN_FIRE: u32 = 1_008u32
The attribute defindex
for halloween fire spell.
Sourcepub const DEFINDEX_EXORCISM: u32 = 1_009u32
pub const DEFINDEX_EXORCISM: u32 = 1_009u32
The attribute defindex
for exorcism spell.
Sourcepub fn attribute_defindex(&self) -> u32
pub fn attribute_defindex(&self) -> u32
Gets the attribute defindex
of this spell.
Sourcepub fn attribute_value(&self) -> Option<u32>
pub fn attribute_value(&self) -> Option<u32>
Gets the value of an attribute belonging to a group of spells.
Footprints and paint spells share a common attribute but have specific values that correspond to which spell is being referenced that can be used to identify the spell.
§Examples
use tf2_enum::Spell;
assert_eq!(Spell::DieJob.attribute_value(), Some(0));
assert_eq!(Spell::HeadlessHorseshoes.attribute_value(), Some(2));
assert_eq!(Spell::Exorcism.attribute_value(), None);
Trait Implementations§
Source§impl Attributes for Spell
set_item_tint_rgb_override
halloween_footstep_type
halloween_voice_modulation
halloween_pumpkin_explosions
halloween_green_flames
halloween_death_ghosts
impl Attributes for Spell
set_item_tint_rgb_override halloween_footstep_type halloween_voice_modulation halloween_pumpkin_explosions halloween_green_flames halloween_death_ghosts