Enum screeps::constants::minerals::ResourceType
source · pub enum ResourceType {
Show 108 variants
Energy = 0,
Power = 1,
Hydrogen = 2,
Oxygen = 3,
Utrium = 4,
Lemergium = 5,
Keanium = 6,
Zynthium = 7,
Catalyst = 8,
Ghodium = 9,
Silicon = 10,
Metal = 11,
Biomass = 12,
Mist = 13,
Hydroxide = 14,
ZynthiumKeanite = 15,
UtriumLemergite = 16,
UtriumHydride = 17,
UtriumOxide = 18,
KeaniumHydride = 19,
KeaniumOxide = 20,
LemergiumHydride = 21,
LemergiumOxide = 22,
ZynthiumHydride = 23,
ZynthiumOxide = 24,
GhodiumHydride = 25,
GhodiumOxide = 26,
UtriumAcid = 27,
UtriumAlkalide = 28,
KeaniumAcid = 29,
KeaniumAlkalide = 30,
LemergiumAcid = 31,
LemergiumAlkalide = 32,
ZynthiumAcid = 33,
ZynthiumAlkalide = 34,
GhodiumAcid = 35,
GhodiumAlkalide = 36,
CatalyzedUtriumAcid = 37,
CatalyzedUtriumAlkalide = 38,
CatalyzedKeaniumAcid = 39,
CatalyzedKeaniumAlkalide = 40,
CatalyzedLemergiumAcid = 41,
CatalyzedLemergiumAlkalide = 42,
CatalyzedZynthiumAcid = 43,
CatalyzedZynthiumAlkalide = 44,
CatalyzedGhodiumAcid = 45,
CatalyzedGhodiumAlkalide = 46,
Ops = 47,
UtriumBar = 48,
LemergiumBar = 49,
ZynthiumBar = 50,
KeaniumBar = 51,
GhodiumMelt = 52,
Oxidant = 53,
Reductant = 54,
Purifier = 55,
Battery = 56,
Composite = 57,
Crystal = 58,
Liquid = 59,
Wire = 60,
Switch = 61,
Transistor = 62,
Microchip = 63,
Circuit = 64,
Device = 65,
Cell = 66,
Phlegm = 67,
Tissue = 68,
Muscle = 69,
Organoid = 70,
Organism = 71,
Alloy = 72,
Tube = 73,
Fixtures = 74,
Frame = 75,
Hydraulics = 76,
Machine = 77,
Condensate = 78,
Concentrate = 79,
Extract = 80,
Spirit = 81,
Emanation = 82,
Essence = 83,
Score = 84,
SymbolAleph = 85,
SymbolBeth = 86,
SymbolGimmel = 87,
SymbolDaleth = 88,
SymbolHe = 89,
SymbolWaw = 90,
SymbolZayin = 91,
SymbolHeth = 92,
SymbolTeth = 93,
SymbolYodh = 94,
SymbolKaph = 95,
SymbolLamedh = 96,
SymbolMem = 97,
SymbolNun = 98,
SymbolSamekh = 99,
SymbolAyin = 100,
SymbolPe = 101,
SymbolTsade = 102,
SymbolQoph = 103,
SymbolRes = 104,
SymbolSin = 105,
SymbolTaw = 106,
Thorium = 107,
// some variants omitted
}
Expand description
Translates RESOURCES_ALL
constant, representing all possible in-game
(non-intershard) resources.
Variants§
Energy = 0
Power = 1
Hydrogen = 2
Oxygen = 3
Utrium = 4
Lemergium = 5
Keanium = 6
Zynthium = 7
Catalyst = 8
Ghodium = 9
Silicon = 10
Metal = 11
Biomass = 12
Mist = 13
Hydroxide = 14
ZynthiumKeanite = 15
UtriumLemergite = 16
UtriumHydride = 17
UtriumOxide = 18
KeaniumHydride = 19
KeaniumOxide = 20
LemergiumHydride = 21
LemergiumOxide = 22
ZynthiumHydride = 23
ZynthiumOxide = 24
GhodiumHydride = 25
GhodiumOxide = 26
UtriumAcid = 27
UtriumAlkalide = 28
KeaniumAcid = 29
KeaniumAlkalide = 30
LemergiumAcid = 31
LemergiumAlkalide = 32
ZynthiumAcid = 33
ZynthiumAlkalide = 34
GhodiumAcid = 35
GhodiumAlkalide = 36
CatalyzedUtriumAcid = 37
CatalyzedUtriumAlkalide = 38
CatalyzedKeaniumAcid = 39
CatalyzedKeaniumAlkalide = 40
CatalyzedLemergiumAcid = 41
CatalyzedLemergiumAlkalide = 42
CatalyzedZynthiumAcid = 43
CatalyzedZynthiumAlkalide = 44
CatalyzedGhodiumAcid = 45
CatalyzedGhodiumAlkalide = 46
Ops = 47
UtriumBar = 48
LemergiumBar = 49
ZynthiumBar = 50
KeaniumBar = 51
GhodiumMelt = 52
Oxidant = 53
Reductant = 54
Purifier = 55
Battery = 56
Composite = 57
Crystal = 58
Liquid = 59
Wire = 60
Switch = 61
Transistor = 62
Microchip = 63
Circuit = 64
Device = 65
Cell = 66
Phlegm = 67
Tissue = 68
Muscle = 69
Organoid = 70
Organism = 71
Alloy = 72
Tube = 73
Fixtures = 74
Frame = 75
Hydraulics = 76
Machine = 77
Condensate = 78
Concentrate = 79
Extract = 80
Spirit = 81
Emanation = 82
Essence = 83
Score = 84
SymbolAleph = 85
SymbolBeth = 86
SymbolGimmel = 87
SymbolDaleth = 88
SymbolHe = 89
SymbolWaw = 90
SymbolZayin = 91
SymbolHeth = 92
SymbolTeth = 93
SymbolYodh = 94
SymbolKaph = 95
SymbolLamedh = 96
SymbolMem = 97
SymbolNun = 98
SymbolSamekh = 99
SymbolAyin = 100
SymbolPe = 101
SymbolTsade = 102
SymbolQoph = 103
SymbolRes = 104
SymbolSin = 105
SymbolTaw = 106
Thorium = 107
Implementations§
source§impl ResourceType
impl ResourceType
sourcepub const fn reaction_components(self) -> Option<[ResourceType; 2]>
pub const fn reaction_components(self) -> Option<[ResourceType; 2]>
Translates the REACTIONS
constant.
sourcepub const fn reaction_time(self) -> Option<u32>
pub const fn reaction_time(self) -> Option<u32>
Translates the REACTION_TIME
constant.
sourcepub fn commodity_recipe(self) -> Option<FactoryRecipe>
pub fn commodity_recipe(self) -> Option<FactoryRecipe>
Translates the COMMODITIES
constant to recipes that can be used by a
factory to make each commodity
source§impl ResourceType
impl ResourceType
pub fn from_js_value(obj: &JsValue) -> Option<ResourceType>
Trait Implementations§
source§impl Clone for ResourceType
impl Clone for ResourceType
source§fn clone(&self) -> ResourceType
fn clone(&self) -> ResourceType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResourceType
impl Debug for ResourceType
source§impl<'de> Deserialize<'de> for ResourceType
impl<'de> Deserialize<'de> for ResourceType
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 Display for ResourceType
impl Display for ResourceType
source§impl From<ResourceType> for JsValue
impl From<ResourceType> for JsValue
source§fn from(obj: ResourceType) -> JsValue
fn from(obj: ResourceType) -> JsValue
Converts to this type from the input type.
source§impl FromStr for ResourceType
impl FromStr for ResourceType
source§impl FromWasmAbi for ResourceType
impl FromWasmAbi for ResourceType
source§impl Hash for ResourceType
impl Hash for ResourceType
source§impl IntoWasmAbi for ResourceType
impl IntoWasmAbi for ResourceType
source§impl OptionFromWasmAbi for ResourceType
impl OptionFromWasmAbi for ResourceType
source§impl OptionIntoWasmAbi for ResourceType
impl OptionIntoWasmAbi for ResourceType
source§impl PartialEq for ResourceType
impl PartialEq for ResourceType
source§fn eq(&self, other: &ResourceType) -> bool
fn eq(&self, other: &ResourceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sequence for ResourceType
impl Sequence for ResourceType
source§impl Serialize for ResourceType
impl Serialize for ResourceType
impl Copy for ResourceType
impl Eq for ResourceType
impl StructuralEq for ResourceType
impl StructuralPartialEq for ResourceType
Auto Trait Implementations§
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnwindSafe for ResourceType
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
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.