Table of Contents

Class KerbalInfo

Namespace
KSP.Game
Assembly
Assembly-CSharp.dll
public class KerbalInfo
Inheritance
KerbalInfo
Inherited Members
Extension Methods

Constructors

KerbalInfo(SerializedKerbalInfo, string)

public KerbalInfo(SerializedKerbalInfo serializedKerbal, string kerbalGuidString)

Parameters

serializedKerbal SerializedKerbalInfo
kerbalGuidString string

KerbalInfo(double, KerbalAttributes)

public KerbalInfo(double enrollmentUT, KerbalAttributes attributes)

Parameters

enrollmentUT double
attributes KerbalAttributes

KerbalInfo(double, string)

public KerbalInfo(double enrollmentUT, string predefinedJSONData = "")

Parameters

enrollmentUT double
predefinedJSONData string

Fields

DEFAULT_KERBAL_MP_FLAGS

public const KerbalInfo.KerbalMPFlag DEFAULT_KERBAL_MP_FLAGS = None

Field Value

KerbalInfo.KerbalMPFlag

EnrollmentUT

public double EnrollmentUT

Field Value

double

Properties

Attributes

public KerbalAttributes Attributes { get; set; }

Property Value

KerbalAttributes

Id

public IGGuid Id { get; set; }

Property Value

IGGuid

KerbalMPFlags

public KerbalInfo.KerbalMPFlag KerbalMPFlags { get; }

Property Value

KerbalInfo.KerbalMPFlag

Location

public KerbalLocationInfo Location { get; }

Property Value

KerbalLocationInfo

NameKey

public string NameKey { get; }

Property Value

string

PlayerGuidString

public string PlayerGuidString { get; }

Property Value

string

Portrait

public Sprite Portrait { get; set; }

Property Value

Sprite

Methods

AreAllKerbalMPFlagDisabled(KerbalMPFlag)

public bool AreAllKerbalMPFlagDisabled(KerbalInfo.KerbalMPFlag kerbalMPFlags)

Parameters

kerbalMPFlags KerbalInfo.KerbalMPFlag

Returns

bool

AreAllKerbalMPFlagsDisabled()

public bool AreAllKerbalMPFlagsDisabled()

Returns

bool

AreAllKerbalMPFlagsEnabled(KerbalMPFlag)

public bool AreAllKerbalMPFlagsEnabled(KerbalInfo.KerbalMPFlag kerbalMPFlags)

Parameters

kerbalMPFlags KerbalInfo.KerbalMPFlag

Returns

bool

AreSomeKerbalMPFlagsDisabled()

public bool AreSomeKerbalMPFlagsDisabled()

Returns

bool

AreSomeKerbalMPFlagsDisabled(KerbalMPFlag)

public bool AreSomeKerbalMPFlagsDisabled(KerbalInfo.KerbalMPFlag kerbalMPFlags)

Parameters

kerbalMPFlags KerbalInfo.KerbalMPFlag

Returns

bool

AreSomeKerbalMPFlagsEnabled(KerbalMPFlag)

public bool AreSomeKerbalMPFlagsEnabled(KerbalInfo.KerbalMPFlag kerbalMPFlags)

Parameters

kerbalMPFlags KerbalInfo.KerbalMPFlag

Returns

bool

Deserialize(string)

public static KerbalInfo Deserialize(string inputJson)

Parameters

inputJson string

Returns

KerbalInfo

DisableKerbalMPFlags(KerbalMPFlag)

public void DisableKerbalMPFlags(KerbalInfo.KerbalMPFlag kerbalMPFlags)

Parameters

kerbalMPFlags KerbalInfo.KerbalMPFlag

EnableKerbalMPFlags(KerbalMPFlag)

public void EnableKerbalMPFlags(KerbalInfo.KerbalMPFlag kerbalMPFlags)

Parameters

kerbalMPFlags KerbalInfo.KerbalMPFlag

EnableKerbalMPFlags(KerbalMPFlag, bool)

public void EnableKerbalMPFlags(KerbalInfo.KerbalMPFlag kerbalMPFlags, bool enabled)

Parameters

kerbalMPFlags KerbalInfo.KerbalMPFlag
enabled bool

GetCareerLength(double)

public double GetCareerLength(double UT)

Parameters

UT double

Returns

double

GetKerbalMPFlagsString()

public string GetKerbalMPFlagsString()

Returns

string

GetKerbalMPFlagsString(KerbalMPFlag)

public static string GetKerbalMPFlagsString(KerbalInfo.KerbalMPFlag kerbalMPFlag)

Parameters

kerbalMPFlag KerbalInfo.KerbalMPFlag

Returns

string

Serialize()

public string Serialize()

Returns

string

SetKerbalMPFlags(KerbalMPFlag)

public void SetKerbalMPFlags(KerbalInfo.KerbalMPFlag kerbalMPFlags)

Parameters

kerbalMPFlags KerbalInfo.KerbalMPFlag