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

Keeps track of all expansions detected More...

Inheritance diagram for Expansions.ExpansionsLoader:
LoadingSystem

Classes

class  ExpansionInfo
 
struct  SupportedExpansion
 

Public Member Functions

override bool IsReady ()
 
override float ProgressFraction ()
 
override string ProgressTitle ()
 
override void StartLoad ()
 
- Public Member Functions inherited from LoadingSystem
virtual float LoadWeight ()
 

Static Public Member Functions

static byte[] BuildMissionFileHash (string filePath, string fileName)
 Build an MD5 hash string of unique data elements in a Mission ConfigNode More...
 
static string GetExpansionDirectory (string expansionName)
 
static string GetExpansionVersion (string expansionName)
 
static bool IsAnyExpansionInstalled ()
 Returns true if any expansions are installed More...
 
static bool IsExpansionAnyKerbalSuitInstalled ()
 Will return true if there is any KSP expansion installed that contains Kerbal Suits. More...
 
static bool IsExpansionInstalled (string name)
 Validate if an expansion is installed More...
 
static bool IsExpansionKerbalSuitInstalled (ProtoCrewMember.KerbalSuit suit)
 Will return true if there is a KSP expansion installed that contains a specific Kerbal Suit type. If default is passed in will always return true (stock suits). More...
 
static bool IsInstalled (List< string > expansions)
 Takes a list of strings and returns true if all are installed More...
 

Public Attributes

SupportedExpansion[] supportedExpansions = new SupportedExpansion[0]
 Which versions of which expansions are supported by this version of KSP? More...
 

Static Public Attributes

static readonly string expansionsMasterExtension = ".kspexpansion"
 
static readonly string expansionsPublicKey = "PFJTQUtleVZhbHVlPjxNb2R1bHVzPnM0VEkrWkk4S0pTMnI0eW5La2Z3ZUJOZ1V4enZabmpXQy85OEQ3bldtdEYrcStqYUFGK3NTdzB1MkhZbHFxQUZMK09kcEdUN2xMUzhDNzhtOGllSzFGK1gyUFhsbTYyVzBYUVJ4TERNRlJVODhVd3NKNFgyNk1DWVRXUDF5aU5yWXZEMXhiVzhlcjFNbStmNDMwMGhRb2JMMjlJRVlVT2d5dDZ6c2RNU0xyZHV2QWMzZFR4RElXZHpsV2NERElyWlJwM01wL3pTL1VoT0diR3FsZ1JjZU1aZHhIU0VpNHFBazhoL0tkdVpjVDRtNFJUaFNpMXgxaXRmVXEzVCtFRHRIVGdWMys0VFFya3dJZmROVUhTVENGb3NaTWpjZWttTEpHajhmdUpUbHRjTWZrckVTMFgweXEyOHk2WG5XUUE1dU43T2FUQmZWdHhWSCtndDRMN2duUT09PC9Nb2R1bHVzPjxFeHBvbmVudD5FUT09PC9FeHBvbmVudD48L1JTQUtleVZhbHVlPg=="
 

Protected Member Functions

IEnumerator LoadExpansions ()
 

Properties

static ExpansionsLoader Instance [get, set]
 Singelton instance for this More...
 

Detailed Description

Keeps track of all expansions detected

Member Function Documentation

static byte [] Expansions.ExpansionsLoader.BuildMissionFileHash ( string  filePath,
string  fileName 
)
inlinestatic

Build an MD5 hash string of unique data elements in a Mission ConfigNode

Parameters
filePathfolder that file is stored in
fileNameName of file
Returns
byte array of the MD5 hash
static string Expansions.ExpansionsLoader.GetExpansionDirectory ( string  expansionName)
inlinestatic
static string Expansions.ExpansionsLoader.GetExpansionVersion ( string  expansionName)
inlinestatic

Get installed version of expansion

Parameters
nameThe name of the expansion
Returns
String containing the version number of the expansion
static bool Expansions.ExpansionsLoader.IsAnyExpansionInstalled ( )
inlinestatic

Returns true if any expansions are installed

Parameters
expansions
Returns
static bool Expansions.ExpansionsLoader.IsExpansionAnyKerbalSuitInstalled ( )
inlinestatic

Will return true if there is any KSP expansion installed that contains Kerbal Suits.

Returns
static bool Expansions.ExpansionsLoader.IsExpansionInstalled ( string  name)
inlinestatic

Validate if an expansion is installed

Parameters
nameThe name of the expansion
Returns
static bool Expansions.ExpansionsLoader.IsExpansionKerbalSuitInstalled ( ProtoCrewMember.KerbalSuit  suit)
inlinestatic

Will return true if there is a KSP expansion installed that contains a specific Kerbal Suit type. If default is passed in will always return true (stock suits).

Parameters
suit
Returns
static bool Expansions.ExpansionsLoader.IsInstalled ( List< string >  expansions)
inlinestatic

Takes a list of strings and returns true if all are installed

Parameters
expansions
Returns
override bool Expansions.ExpansionsLoader.IsReady ( )
inlinevirtual

Reimplemented from LoadingSystem.

IEnumerator Expansions.ExpansionsLoader.LoadExpansions ( )
inlineprotected

< load the objects via the loaders

override float Expansions.ExpansionsLoader.ProgressFraction ( )
inlinevirtual

Reimplemented from LoadingSystem.

override string Expansions.ExpansionsLoader.ProgressTitle ( )
inlinevirtual

Reimplemented from LoadingSystem.

override void Expansions.ExpansionsLoader.StartLoad ( )
inlinevirtual

Reimplemented from LoadingSystem.

Member Data Documentation

readonly string Expansions.ExpansionsLoader.expansionsMasterExtension = ".kspexpansion"
static
readonly string Expansions.ExpansionsLoader.expansionsPublicKey = "PFJTQUtleVZhbHVlPjxNb2R1bHVzPnM0VEkrWkk4S0pTMnI0eW5La2Z3ZUJOZ1V4enZabmpXQy85OEQ3bldtdEYrcStqYUFGK3NTdzB1MkhZbHFxQUZMK09kcEdUN2xMUzhDNzhtOGllSzFGK1gyUFhsbTYyVzBYUVJ4TERNRlJVODhVd3NKNFgyNk1DWVRXUDF5aU5yWXZEMXhiVzhlcjFNbStmNDMwMGhRb2JMMjlJRVlVT2d5dDZ6c2RNU0xyZHV2QWMzZFR4RElXZHpsV2NERElyWlJwM01wL3pTL1VoT0diR3FsZ1JjZU1aZHhIU0VpNHFBazhoL0tkdVpjVDRtNFJUaFNpMXgxaXRmVXEzVCtFRHRIVGdWMys0VFFya3dJZmROVUhTVENGb3NaTWpjZWttTEpHajhmdUpUbHRjTWZrckVTMFgweXEyOHk2WG5XUUE1dU43T2FUQmZWdHhWSCtndDRMN2duUT09PC9Nb2R1bHVzPjxFeHBvbmVudD5FUT09PC9FeHBvbmVudD48L1JTQUtleVZhbHVlPg=="
static
SupportedExpansion [] Expansions.ExpansionsLoader.supportedExpansions = new SupportedExpansion[0]

Which versions of which expansions are supported by this version of KSP?

Property Documentation

ExpansionsLoader Expansions.ExpansionsLoader.Instance
staticgetset

Singelton instance for this


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