Enum screeps::constants::minerals::ResourceType
source · pub enum ResourceType {
Show 108 variants
Energy,
Power,
Hydrogen,
Oxygen,
Utrium,
Lemergium,
Keanium,
Zynthium,
Catalyst,
Ghodium,
Silicon,
Metal,
Biomass,
Mist,
Hydroxide,
ZynthiumKeanite,
UtriumLemergite,
UtriumHydride,
UtriumOxide,
KeaniumHydride,
KeaniumOxide,
LemergiumHydride,
LemergiumOxide,
ZynthiumHydride,
ZynthiumOxide,
GhodiumHydride,
GhodiumOxide,
UtriumAcid,
UtriumAlkalide,
KeaniumAcid,
KeaniumAlkalide,
LemergiumAcid,
LemergiumAlkalide,
ZynthiumAcid,
ZynthiumAlkalide,
GhodiumAcid,
GhodiumAlkalide,
CatalyzedUtriumAcid,
CatalyzedUtriumAlkalide,
CatalyzedKeaniumAcid,
CatalyzedKeaniumAlkalide,
CatalyzedLemergiumAcid,
CatalyzedLemergiumAlkalide,
CatalyzedZynthiumAcid,
CatalyzedZynthiumAlkalide,
CatalyzedGhodiumAcid,
CatalyzedGhodiumAlkalide,
Ops,
UtriumBar,
LemergiumBar,
ZynthiumBar,
KeaniumBar,
GhodiumMelt,
Oxidant,
Reductant,
Purifier,
Battery,
Composite,
Crystal,
Liquid,
Wire,
Switch,
Transistor,
Microchip,
Circuit,
Device,
Cell,
Phlegm,
Tissue,
Muscle,
Organoid,
Organism,
Alloy,
Tube,
Fixtures,
Frame,
Hydraulics,
Machine,
Condensate,
Concentrate,
Extract,
Spirit,
Emanation,
Essence,
Score,
SymbolAleph,
SymbolBeth,
SymbolGimmel,
SymbolDaleth,
SymbolHe,
SymbolWaw,
SymbolZayin,
SymbolHeth,
SymbolTeth,
SymbolYodh,
SymbolKaph,
SymbolLamedh,
SymbolMem,
SymbolNun,
SymbolSamekh,
SymbolAyin,
SymbolPe,
SymbolTsade,
SymbolQoph,
SymbolRes,
SymbolSin,
SymbolTaw,
Thorium,
// some variants omitted
}
Expand description
Translates RESOURCES_ALL
constant, representing all possible in-game
(non-intershard) resources.
Variants§
Energy
Power
Hydrogen
Oxygen
Utrium
Lemergium
Keanium
Zynthium
Catalyst
Ghodium
Silicon
Metal
Biomass
Mist
Hydroxide
ZynthiumKeanite
UtriumLemergite
UtriumHydride
UtriumOxide
KeaniumHydride
KeaniumOxide
LemergiumHydride
LemergiumOxide
ZynthiumHydride
ZynthiumOxide
GhodiumHydride
GhodiumOxide
UtriumAcid
UtriumAlkalide
KeaniumAcid
KeaniumAlkalide
LemergiumAcid
LemergiumAlkalide
ZynthiumAcid
ZynthiumAlkalide
GhodiumAcid
GhodiumAlkalide
CatalyzedUtriumAcid
CatalyzedUtriumAlkalide
CatalyzedKeaniumAcid
CatalyzedKeaniumAlkalide
CatalyzedLemergiumAcid
CatalyzedLemergiumAlkalide
CatalyzedZynthiumAcid
CatalyzedZynthiumAlkalide
CatalyzedGhodiumAcid
CatalyzedGhodiumAlkalide
Ops
UtriumBar
LemergiumBar
ZynthiumBar
KeaniumBar
GhodiumMelt
Oxidant
Reductant
Purifier
Battery
Composite
Crystal
Liquid
Wire
Switch
Transistor
Microchip
Circuit
Device
Cell
Phlegm
Tissue
Muscle
Organoid
Organism
Alloy
Tube
Fixtures
Frame
Hydraulics
Machine
Condensate
Concentrate
Extract
Spirit
Emanation
Essence
Score
SymbolAleph
SymbolBeth
SymbolGimmel
SymbolDaleth
SymbolHe
SymbolWaw
SymbolZayin
SymbolHeth
SymbolTeth
SymbolYodh
SymbolKaph
SymbolLamedh
SymbolMem
SymbolNun
SymbolSamekh
SymbolAyin
SymbolPe
SymbolTsade
SymbolQoph
SymbolRes
SymbolSin
SymbolTaw
Thorium
Implementations§
source§impl ResourceType
impl ResourceType
sourcepub fn reaction_components(self) -> Option<[ResourceType; 2]>
pub fn reaction_components(self) -> Option<[ResourceType; 2]>
Translates the REACTIONS
constant.
sourcepub fn reaction_time(self) -> Option<u32>
pub 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 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 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<ResourceType> for ResourceType
impl PartialEq<ResourceType> 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
.