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.
Variants§
TeamSpiritFootprints
GangreenFootprints
CorpseGrayFootprints
ViolentVioletFootprints
RottenOrangeFootprints
BruisedPurpleFootprints
HeadlessHorseshoes
DieJob
ChromaticCorruption
PutrescentPigmentation
SpectralSpectrum
SinisterStaining
VoicesFromBelow
PumpkinBombs
HalloweenFire
Exorcism
Implementations§
Source§impl Spell
impl Spell
pub const DEFINDEX_PAINT: u32 = 1_004u32
pub const DEFINDEX_FOOTPRINTS: u32 = 1_005u32
pub const DEFINDEX_VOICES_FROM_BELOW: u32 = 1_006u32
pub const DEFINDEX_PUMPKIN_BOMBS: u32 = 1_007u32
pub const DEFINDEX_HALLOWEEN_FIRE: u32 = 1_008u32
pub const DEFINDEX_EXORCISM: u32 = 1_009u32
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 spell. Paint and footprint spells fall under a group which are aligned with a specific value to specify the exact spell while other spells do not.
§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<'de> Deserialize<'de> for Spell
impl<'de> Deserialize<'de> for Spell
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 Into<Spell> for FootprintsSpell
impl Into<Spell> for FootprintsSpell
Source§impl Into<Spell> for PaintSpell
impl Into<Spell> for PaintSpell
Source§impl Ord for Spell
impl Ord for Spell
Source§impl PartialOrd for Spell
impl PartialOrd for Spell
Source§impl TryFrom<Spell> for PaintSpell
impl TryFrom<Spell> for PaintSpell
impl Copy for Spell
impl Eq for Spell
impl StructuralPartialEq for Spell
Auto Trait Implementations§
impl Freeze for Spell
impl RefUnwindSafe for Spell
impl Send for Spell
impl Sync for Spell
impl Unpin for Spell
impl UnwindSafe for Spell
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