pub struct SystemStateResolver {
pub location_info: LocationInfo,
pub planet_state: HashMap<u8, PlanetState>,
pub star_scans: HashMap<u8, ScanEvent>,
pub belt_scans: HashMap<u8, ScanEvent>,
pub visits: Vec<DateTime<Utc>>,
pub carrier_visits: Vec<DateTime<Utc>>,
pub number_of_bodies: Option<u8>,
pub progress: f32,
pub all_found: bool,
pub station_signals: Vec<FSSSignalDiscoveredEvent>,
pub exobiology_system: TargetSystem,
}
Fields§
§location_info: LocationInfo
Information about the system.
planet_state: HashMap<u8, PlanetState>
Entries for state for planets in the system.
star_scans: HashMap<u8, ScanEvent>
Scans for each star in the system.
belt_scans: HashMap<u8, ScanEvent>
Scans for each cluster in the system.
visits: Vec<DateTime<Utc>>
Times when the player was in the system.
carrier_visits: Vec<DateTime<Utc>>
Times when the player’s was in the system.
number_of_bodies: Option<u8>
The number of bodies that are present in the system.
progress: f32
Current progress of discovering all bodies in the system.
all_found: bool
Whether all bodies have been discovered in the system.
station_signals: Vec<FSSSignalDiscoveredEvent>
List of station signals.
exobiology_system: TargetSystem
Information about the system needed for exobiology predictions.
Implementations§
Source§impl SystemStateResolver
impl SystemStateResolver
pub fn visit(&mut self, date_time: &DateTime<Utc>)
Sourcepub fn nr_of_scans(&self) -> usize
pub fn nr_of_scans(&self) -> usize
Returns the total number of scans, which includes planets, stars and belt clusters.
Sourcepub fn nr_of_scanned_bodies(&self) -> usize
pub fn nr_of_scanned_bodies(&self) -> usize
Returns the total number of scanned bodies, which includes planets and stars. Take note that this does not include scanned belt clusters as they are not counted towards the total number of scanned bodies in game.