pub struct PlanetStateResolver {
pub scan: ScanEvent,
pub saa_scan: Option<SAAScanCompleteEvent>,
pub saa_signals: Vec<SAASignalsFoundEventSignal>,
pub saa_genuses: Option<HashSet<Genus>>,
pub scanned_species: HashSet<Species>,
pub logged_species: HashSet<Species>,
pub touchdowns: Vec<TouchdownEvent>,
pub signal_counts: Option<SignalCounts>,
pub commodity_signals: Vec<Commodity>,
pub exobiology_body: TargetPlanet,
}
Fields§
§scan: ScanEvent
The scan associated with this planet.
saa_scan: Option<SAAScanCompleteEvent>
The SAA scan for this planet, if any.
saa_signals: Vec<SAASignalsFoundEventSignal>
List of SAA signals for this planet.
saa_genuses: Option<HashSet<Genus>>
List of genuses found by SAA, if any.
scanned_species: HashSet<Species>
Species that have been scanned on the planet.
logged_species: HashSet<Species>
Species that have been fully logged on the planet.
touchdowns: Vec<TouchdownEvent>
List of touchdowns on the planet.
signal_counts: Option<SignalCounts>
Signals found on the planet.
commodity_signals: Vec<Commodity>
Commodity signals that have been found on the planet.
exobiology_body: TargetPlanet
Information about the planet needed for exobiology predictions.
Implementations§
Source§impl PlanetStateResolver
impl PlanetStateResolver
pub fn has_human_signals(&self) -> bool
pub fn has_biological_signals(&self) -> bool
pub fn has_geological_signals(&self) -> bool
pub fn has_thargoid_signals(&self) -> bool
pub fn has_guardian_signals(&self) -> bool
pub fn has_other_signals(&self) -> bool
Sourcepub fn get_planet_species(
&self,
target_system: &TargetSystem,
) -> Vec<PlanetSpeciesEntry>
pub fn get_planet_species( &self, target_system: &TargetSystem, ) -> Vec<PlanetSpeciesEntry>
Returns entries for all species that could theoretically spawn on the planet and indicates if they can actually spawn or not.
Sourcepub fn get_lowest_exobiology_value(&self, target_system: &TargetSystem) -> u64
pub fn get_lowest_exobiology_value(&self, target_system: &TargetSystem) -> u64
Calculates the lowest exobiology value based on the current information about the planet.
Trait Implementations§
Source§impl Debug for PlanetStateResolver
impl Debug for PlanetStateResolver
Auto Trait Implementations§
impl Freeze for PlanetStateResolver
impl RefUnwindSafe for PlanetStateResolver
impl Send for PlanetStateResolver
impl Sync for PlanetStateResolver
impl Unpin for PlanetStateResolver
impl UnwindSafe for PlanetStateResolver
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