pub enum SpawnCondition<'a> {
Show 24 variants
MinMeanTemperature(f32),
MaxMeanTemperature(f32),
NoAtmosphere,
AnyThinAtmosphere,
ThinAtmosphere(AtmosphereType),
MinGravity(f32),
MaxGravity(f32),
PlanetClass(PlanetClass),
ParentStarClass(StarClass),
ParentStarLuminosity(StarLuminosity),
MinOrEqualParentStarLuminosity(StarLuminosity),
SystemContainsPlanetClass(PlanetClass),
VolcanismType(VolcanismType),
MinDistanceFromParentSun(f32),
AnyVolcanism,
WithinNebulaRange(f32),
GeologicalSignalsPresent,
MaterialPresence(Material),
RockyComposition,
IcyComposition,
MetalComposition,
Special,
Any(&'a [SpawnCondition<'a>]),
All(&'a [SpawnCondition<'a>]),
}
Variants§
MinMeanTemperature(f32)
MaxMeanTemperature(f32)
NoAtmosphere
AnyThinAtmosphere
ThinAtmosphere(AtmosphereType)
MinGravity(f32)
The minimum gravity the planet must have, in G
MaxGravity(f32)
The maximum gravity the planet must have, in G
PlanetClass(PlanetClass)
ParentStarClass(StarClass)
ParentStarLuminosity(StarLuminosity)
MinOrEqualParentStarLuminosity(StarLuminosity)
SystemContainsPlanetClass(PlanetClass)
VolcanismType(VolcanismType)
MinDistanceFromParentSun(f32)
The minimum distance the planet needs to be from the sun in AU
AnyVolcanism
WithinNebulaRange(f32)
The maximum distance the planet needs to be from the center of a nebula in Ly
GeologicalSignalsPresent
The target planet must have at least one geological signal present.
MaterialPresence(Material)
RockyComposition
IcyComposition
MetalComposition
Special
Any(&'a [SpawnCondition<'a>])
All(&'a [SpawnCondition<'a>])
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SpawnCondition<'a>
impl<'a> RefUnwindSafe for SpawnCondition<'a>
impl<'a> Send for SpawnCondition<'a>
impl<'a> Sync for SpawnCondition<'a>
impl<'a> Unpin for SpawnCondition<'a>
impl<'a> UnwindSafe for SpawnCondition<'a>
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