#[repr(u32)]pub enum Paint {
Show 29 variants
AColorSimilarToSlate = 3_100_495,
ADeepCommitmentToPurple = 8_208_497,
ADistinctiveLackOfHue = 1_315_860,
AMannsMint = 12_377_523,
AfterEight = 2_960_676,
AgedMoustacheGrey = 8_289_918,
AnExtraordinaryAbundanceOfTinge = 15_132_390,
AustraliumGold = 15_185_211,
ColorNo216190216 = 14_204_632,
DarkSalmonInjustice = 15_308_410,
DrablyOlive = 8_421_376,
IndubitablyGreen = 7_511_618,
MannCoOrange = 13_595_446,
Muskelmannbraun = 10_843_461,
NobleHattersViolet = 5_322_826,
PeculiarlyDrabTincture = 12_955_537,
PinkAsHell = 16_738_740,
RadiganConagherBrown = 6_901_050,
TheBitterTasteOfDefeatAndLime = 3_329_330,
TheColorOfAGentlemannsBusinessPants = 15_787_660,
YeOldeRusticColour = 8_154_199,
ZepheniahsGreed = 4_345_659,
AnAirOfDebonair = 6_637_376,
BalaclavasAreForever = 3_874_595,
CreamSpirit = 12_807_213,
OperatorsOveralls = 4_732_984,
TeamSpirit = 12_073_019,
TheValueOfTeamwork = 8_400_928,
WaterloggedLabCoat = 11_049_612,
}
Expand description
Paint. repr
values are mapped to the corresponding color. For team paints this is the color
for RED team.
Variants§
AColorSimilarToSlate = 3_100_495
ADeepCommitmentToPurple = 8_208_497
ADistinctiveLackOfHue = 1_315_860
AMannsMint = 12_377_523
AfterEight = 2_960_676
AgedMoustacheGrey = 8_289_918
AnExtraordinaryAbundanceOfTinge = 15_132_390
AustraliumGold = 15_185_211
ColorNo216190216 = 14_204_632
DarkSalmonInjustice = 15_308_410
DrablyOlive = 8_421_376
IndubitablyGreen = 7_511_618
MannCoOrange = 13_595_446
Muskelmannbraun = 10_843_461
NobleHattersViolet = 5_322_826
PeculiarlyDrabTincture = 12_955_537
PinkAsHell = 16_738_740
RadiganConagherBrown = 6_901_050
TheBitterTasteOfDefeatAndLime = 3_329_330
TheColorOfAGentlemannsBusinessPants = 15_787_660
YeOldeRusticColour = 8_154_199
ZepheniahsGreed = 4_345_659
AnAirOfDebonair = 6_637_376
BalaclavasAreForever = 3_874_595
CreamSpirit = 12_807_213
OperatorsOveralls = 4_732_984
TeamSpirit = 12_073_019
TheValueOfTeamwork = 8_400_928
WaterloggedLabCoat = 11_049_612
Implementations§
Source§impl Paint
impl Paint
pub fn color(&self) -> u32
Sourcepub fn from_color(color: u32) -> Option<Self>
pub fn from_color(color: u32) -> Option<Self>
Sourcepub fn from_color_str(color: &str) -> Option<Self>
pub fn from_color_str(color: &str) -> Option<Self>
Sourcepub fn colors(&self) -> (u32, u32)
pub fn colors(&self) -> (u32, u32)
Gets the colors for both teams. The RED team appears first. For non-team-color paints the color will be the same.
Sourcepub fn is_team_paint(&self) -> bool
pub fn is_team_paint(&self) -> bool
Determines if this paint is a team-colored paint.
Sourcepub fn from_defindex(defindex: u32) -> Option<Self>
pub fn from_defindex(defindex: u32) -> Option<Self>
Converts a defindex
into its related Paint
, if it exists.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Paint
impl<'de> Deserialize<'de> for Paint
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 Ord for Paint
impl Ord for Paint
Source§impl PartialOrd for Paint
impl PartialOrd for Paint
Source§impl TryFromPrimitive for Paint
impl TryFromPrimitive for Paint
impl Copy for Paint
impl Eq for Paint
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnwindSafe for Paint
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