Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
ScienceLabSearch Class Reference

When searching for a science lab to send data to, we get a lot of meta data we can package and send around (to UI stuff etc) without having to search again. More...

Public Types

enum  SearchError {
  SearchError.NONE, SearchError.BUG, SearchError.MIXED, SearchError.NO_LABS,
  SearchError.NO_MANNED, SearchError.NO_SPACE, SearchError.ALL_RESEARCHED, SearchError.ALL_PROCESSING
}
 

Public Member Functions

void PostErrorToScreen ()
 
 ScienceLabSearch (Vessel vessel, ScienceData data)
 

Public Attributes

ScienceData Data
 
SearchError Error = SearchError.NONE
 
int LabsManned
 
int LabsNotProcessing
 
int LabsNotResearched
 
int LabsTotal
 
int LabsWithSpace
 
ModuleScienceLab NextLabForData = null
 
Vessel Vessel
 

Properties

string DataExpectationSummary [get]
 
string ErrorString [get]
 
bool HasAnyLabs [get]
 
bool HasMultipleLabs [get]
 
bool NextLabForDataFound [get]
 
double ScienceExpectation [get]
 
double TimeExpectation [get]
 

Detailed Description

When searching for a science lab to send data to, we get a lot of meta data we can package and send around (to UI stuff etc) without having to search again.

Member Enumeration Documentation

Enumerator
NONE 
BUG 
MIXED 
NO_LABS 
NO_MANNED 
NO_SPACE 
ALL_RESEARCHED 
ALL_PROCESSING 

Constructor & Destructor Documentation

ScienceLabSearch.ScienceLabSearch ( Vessel  vessel,
ScienceData  data 
)
inline

Member Function Documentation

void ScienceLabSearch.PostErrorToScreen ( )
inline

Member Data Documentation

ScienceData ScienceLabSearch.Data
SearchError ScienceLabSearch.Error = SearchError.NONE
int ScienceLabSearch.LabsManned
int ScienceLabSearch.LabsNotProcessing
int ScienceLabSearch.LabsNotResearched
int ScienceLabSearch.LabsTotal
int ScienceLabSearch.LabsWithSpace
ModuleScienceLab ScienceLabSearch.NextLabForData = null
Vessel ScienceLabSearch.Vessel

Property Documentation

string ScienceLabSearch.DataExpectationSummary
get
string ScienceLabSearch.ErrorString
get
bool ScienceLabSearch.HasAnyLabs
get
bool ScienceLabSearch.HasMultipleLabs
get
bool ScienceLabSearch.NextLabForDataFound
get
double ScienceLabSearch.ScienceExpectation
get
double ScienceLabSearch.TimeExpectation
get

The documentation for this class was generated from the following file: