Table of Contents

Class KerbalComponent

Namespace
KSP.Sim.impl
Assembly
Assembly-CSharp.dll
public class KerbalComponent : ObjectComponent, IGuidIdentity
Inheritance
KerbalComponent
Implements
Inherited Members
Extension Methods

Constructors

KerbalComponent()

public KerbalComponent()

KerbalComponent(AssemblyDefinition, UniverseModel)

public KerbalComponent(AssemblyDefinition kerbalDefinition, UniverseModel universeModel)

Parameters

kerbalDefinition AssemblyDefinition
universeModel UniverseModel

Fields

CurrentLadderPartId

public IGGuid CurrentLadderPartId

Field Value

IGGuid

GroundPresentCollisionVesselComponent

public VesselComponent GroundPresentCollisionVesselComponent

Field Value

VesselComponent

IsCarryingFlag

public bool IsCarryingFlag

Field Value

bool

IsCharacterAtLadderUpperLimit

public bool IsCharacterAtLadderUpperLimit

Field Value

bool

LadderUpPosOffsetSigned

public float LadderUpPosOffsetSigned

Field Value

float

Properties

DefinitionType

[TypeConverterIgnore]
public override Type DefinitionType { get; }

Property Value

Type

EVAStartLocationId

public IGGuid EVAStartLocationId { get; set; }

Property Value

IGGuid

IsEVA

public bool IsEVA { get; }

Property Value

bool

KerbalData

public Data_Kerbal KerbalData { get; }

Property Value

Data_Kerbal

KerbalInfo

public KerbalInfo KerbalInfo { get; set; }

Property Value

KerbalInfo

MainPart

public PartComponent MainPart { get; set; }

Property Value

PartComponent

PartOwner

public PartOwnerComponent PartOwner { get; }

Property Value

PartOwnerComponent

Rigidbody

public RigidbodyComponent Rigidbody { get; }

Property Value

RigidbodyComponent

StateType

[TypeConverterIgnore]
public override Type StateType { get; }

Property Value

Type

Type

[TypeConverterIgnore]
public override Type Type { get; }

Property Value

Type

Vessel

public VesselComponent Vessel { get; }

Property Value

VesselComponent

ViewObjectComponentType

[TypeConverterIgnore]
public override Type ViewObjectComponentType { get; }

Property Value

Type

WasCreatedFromEVAAction

public bool WasCreatedFromEVAAction { get; set; }

Property Value

bool

Methods

AssignKerbalInfo()

public void AssignKerbalInfo()

CheckClimbingLadderSituation(ref VesselSituations, ref bool, ref bool)

public bool CheckClimbingLadderSituation(ref VesselSituations situation, ref bool landed, ref bool splashed)

Parameters

situation VesselSituations
landed bool
splashed bool

Returns

bool

CheckNotInOrbitGroundContactSituation(ref VesselSituations, ref bool, ref bool)

public bool CheckNotInOrbitGroundContactSituation(ref VesselSituations situation, ref bool landed, ref bool splashed)

Parameters

situation VesselSituations
landed bool
splashed bool

Returns

bool

CheckSituation(ref VesselSituations)

public bool CheckSituation(ref VesselSituations situation)

Parameters

situation VesselSituations

Returns

bool

GetDefinition()

public override object GetDefinition()

Returns

object

GetState()

public override object GetState()

Returns

object

IsAboveHighAltitude()

public bool IsAboveHighAltitude()

Returns

bool

OnAdded(SimulationObjectModel, double)

public override void OnAdded(SimulationObjectModel simulationObject, double universalTime)

Parameters

simulationObject SimulationObjectModel
universalTime double

OnRemoved(SimulationObjectModel, double)

public override void OnRemoved(SimulationObjectModel simulationObject, double universalTime)

Parameters

simulationObject SimulationObjectModel
universalTime double

OnStart(double)

public override void OnStart(double universalTime)

Parameters

universalTime double

SetDefinition(object)

public override void SetDefinition(object definitionData)

Parameters

definitionData object

SetState(object, ISimulationModelMap)

public override object SetState(object stateData, ISimulationModelMap modelMap)

Parameters

stateData object
modelMap ISimulationModelMap

Returns

object

ValidateState(object, ISimulationModelMap)

public override bool ValidateState(object stateData, ISimulationModelMap simulationModelMap)

Parameters

stateData object
simulationModelMap ISimulationModelMap

Returns

bool