Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo Class Reference

This class holds the details that are displayed for each mission in the MissionPlayDialog More...

Inheritance diagram for Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo:
IConfigNode

Public Member Functions

void Load (ConfigNode node)
 load the object from a provided confignode More...
 
MissionProfileInfo LoadDetailsFromMission (Mission mission)
 Load the details needed for the dialog from a loaded game object More...
 
void LoadFromMetaFile (string filename, string saveFolder)
 Load the object from a persisted .loadmeta file (alongside the .mission file) More...
 
 MissionProfileInfo ()
 
 MissionProfileInfo (string filename, string saveFolder, Mission mission)
 
void Save (ConfigNode node)
 Save the values to the config node More...
 
void SaveToMetaFile (string filename, string saveFolder)
 Save the object to a .loadmeta file alongside the mission More...
 

Static Public Member Functions

static long GetLastWriteTime (string filename, string saveFolder)
 Get the last write time of the sfs file with this name More...
 
static string GetSFSMD5 (string filename, string saveFolder)
 Calculate the MD5 hash of the mission file with these names More...
 

Public Attributes

List< string > actionModules = new List<string>()
 List of all the action modules used in the mission More...
 
string author
 Author for the mission. More...
 
string briefing
 Briefing for the mission. More...
 
MissionDifficulty difficulty = MissionDifficulty.Intermediate
 Difficulty of the mission as rated by the Creator More...
 
bool errorAccess
 Flag for whether we hit an issue when trying to access the save More...
 
string errorDetails = ""
 Description of the error More...
 
bool hardIcon
 Is this mission indicated as Hard in the dialogs More...
 
Guid id
 ID of the mission More...
 
long lastWriteTime
 Last write time of the save file (in ticks) More...
 
string missionExpansionVersion
 Version of the Making History expansion that was used to create the mission. More...
 
string modsBriefing
 Mods briefing for the mission. More...
 
int nodeCount = 0
 Number of nodes in the mission. More...
 
int order
 The order of this mission when displayed in the lists More...
 
string packName
 The mission pack this mission is a part of More...
 
string saveMD5 = ""
 Storage for MD5 hash of the SFS file More...
 
double startUT = -1
 Start time of the mission. More...
 
ulong steamPublishedFileId
 This is the steam published FileId for this mission if it has been published to steam. More...
 
List< string > tags = new List<string>()
 A list of mission tags More...
 
List< string > testModules = new List<string>()
 List of all the test modules used in the mission More...
 
string title = ""
 Display name of the mission. More...
 
int vesselCount = 0
 Number of vessels in play in the mission. More...
 

Detailed Description

This class holds the details that are displayed for each mission in the MissionPlayDialog

Constructor & Destructor Documentation

Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.MissionProfileInfo ( )
inline
Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.MissionProfileInfo ( string  filename,
string  saveFolder,
Mission  mission 
)
inline

Member Function Documentation

static long Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.GetLastWriteTime ( string  filename,
string  saveFolder 
)
inlinestatic

Get the last write time of the sfs file with this name

Parameters
filenamename of the save file (without extension)
saveFoldername of the save folder
Returns
The last write time (in ticks)
static string Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.GetSFSMD5 ( string  filename,
string  saveFolder 
)
inlinestatic

Calculate the MD5 hash of the mission file with these names

Parameters
filenamename of the mission file (without extension)
saveFoldername of the save folder
Returns
The MD5 hash
void Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.Load ( ConfigNode  node)
inline

load the object from a provided confignode

Parameters
node

Implements IConfigNode.

MissionProfileInfo Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.LoadDetailsFromMission ( Mission  mission)
inline

Load the details needed for the dialog from a loaded game object

Parameters
missionLoaded mission object
Returns
void Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.LoadFromMetaFile ( string  filename,
string  saveFolder 
)
inline

Load the object from a persisted .loadmeta file (alongside the .mission file)

Parameters
filenamename of the mission file (without extension)
saveFoldername of the save folder
void Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.Save ( ConfigNode  node)
inline

Save the values to the config node

Parameters
node

Implements IConfigNode.

void Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.SaveToMetaFile ( string  filename,
string  saveFolder 
)
inline

Save the object to a .loadmeta file alongside the mission

Parameters
filenamename of the mission file (without extension)
saveFoldername of the save folder

Member Data Documentation

List<string> Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.actionModules = new List<string>()

List of all the action modules used in the mission

string Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.author

Author for the mission.

string Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.briefing

Briefing for the mission.

MissionDifficulty Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.difficulty = MissionDifficulty.Intermediate

Difficulty of the mission as rated by the Creator

bool Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.errorAccess

Flag for whether we hit an issue when trying to access the save

string Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.errorDetails = ""

Description of the error

bool Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.hardIcon

Is this mission indicated as Hard in the dialogs

Guid Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.id

ID of the mission

long Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.lastWriteTime

Last write time of the save file (in ticks)

string Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.missionExpansionVersion

Version of the Making History expansion that was used to create the mission.

string Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.modsBriefing

Mods briefing for the mission.

int Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.nodeCount = 0

Number of nodes in the mission.

int Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.order

The order of this mission when displayed in the lists

string Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.packName

The mission pack this mission is a part of

string Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.saveMD5 = ""

Storage for MD5 hash of the SFS file

double Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.startUT = -1

Start time of the mission.

ulong Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.steamPublishedFileId

This is the steam published FileId for this mission if it has been published to steam.

List<string> Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.tags = new List<string>()

A list of mission tags

List<string> Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.testModules = new List<string>()

List of all the test modules used in the mission

string Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.title = ""

Display name of the mission.

int Expansions.Missions.Runtime.MissionPlayDialog.MissionProfileInfo.vesselCount = 0

Number of vessels in play in the mission.


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