pub enum PlanetClass {
Show 20 variants
MetalRichBody,
HighMetalContentBody,
RockyBody,
IcyBody,
RockyIceBody,
EarthlikeBody,
WaterWorld,
AmmoniaWorld,
WaterGiant,
WaterGiantWithLife,
GasGiantWithWaterBasedLife,
GasGiantWithAmmoniaBasedLife,
SudarskyClassIGasGiant,
SudarskyClassIIGasGiant,
SudarskyClassIIIGasGiant,
SudarskyClassIVGasGiant,
SudarskyClassVGasGiant,
HeliumRichGasGiant,
HeliumGasGiant,
Unknown(String),
}
Variants§
MetalRichBody
HighMetalContentBody
RockyBody
IcyBody
RockyIceBody
EarthlikeBody
WaterWorld
AmmoniaWorld
WaterGiant
WaterGiantWithLife
GasGiantWithWaterBasedLife
GasGiantWithAmmoniaBasedLife
SudarskyClassIGasGiant
SudarskyClassIIGasGiant
SudarskyClassIIIGasGiant
SudarskyClassIVGasGiant
SudarskyClassVGasGiant
HeliumRichGasGiant
HeliumGasGiant
Unknown(String)
Available on crate feature
allow-unknown
only.Implementations§
Source§impl PlanetClass
impl PlanetClass
Sourcepub fn base_value(&self) -> u64
pub fn base_value(&self) -> u64
Returns the base exploration value of the star planet class.
Sourcepub fn terraformable_bonus(&self) -> u64
pub fn terraformable_bonus(&self) -> u64
Returns the bonus exploration value if the planet is terraformable.
Trait Implementations§
Source§impl Clone for PlanetClass
impl Clone for PlanetClass
Source§fn clone(&self) -> PlanetClass
fn clone(&self) -> PlanetClass
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 PlanetClass
impl Debug for PlanetClass
Source§impl<'de> Deserialize<'de> for PlanetClass
impl<'de> Deserialize<'de> for PlanetClass
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 PlanetClass
impl Display for PlanetClass
Source§impl FromStr for PlanetClass
impl FromStr for PlanetClass
Source§impl Hash for PlanetClass
impl Hash for PlanetClass
Source§impl PartialEq for PlanetClass
impl PartialEq for PlanetClass
Source§impl Serialize for PlanetClass
impl Serialize for PlanetClass
impl Eq for PlanetClass
impl StructuralPartialEq for PlanetClass
Auto Trait Implementations§
impl Freeze for PlanetClass
impl RefUnwindSafe for PlanetClass
impl Send for PlanetClass
impl Sync for PlanetClass
impl Unpin for PlanetClass
impl UnwindSafe for PlanetClass
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