Struct PlanetStateResolver

Source
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

Source

pub fn has_human_signals(&self) -> bool

Source

pub fn has_biological_signals(&self) -> bool

Source

pub fn has_geological_signals(&self) -> bool

Source

pub fn has_thargoid_signals(&self) -> bool

Source

pub fn has_guardian_signals(&self) -> bool

Source

pub fn has_other_signals(&self) -> bool

Source

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.

Source

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for PlanetStateResolver

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.