Table of Contents

Class EVAUtils

Namespace
KSP
Assembly
Assembly-CSharp.dll
public static class EVAUtils
Inheritance
EVAUtils
Inherited Members

Methods

CanBoardPart(PartBehavior)

public static bool CanBoardPart(PartBehavior part)

Parameters

part PartBehavior

Returns

bool

CreateFlagSimObject(FlagComponentDefinition, SerializedLocation, Action<IGGuid>, Action<SimulationObjectView>)

public static void CreateFlagSimObject(FlagComponentDefinition definition, SerializedLocation location, Action<IGGuid> modelCreatedCallback, Action<SimulationObjectView> viewCreatedCallback)

Parameters

definition FlagComponentDefinition
location SerializedLocation
modelCreatedCallback Action<IGGuid>
viewCreatedCallback Action<SimulationObjectView>

CreateFlagSimObject(FlagComponentDefinition, SimulationObjectModel, Action<IGGuid>, Action<SimulationObjectView>)

public static void CreateFlagSimObject(FlagComponentDefinition definition, SimulationObjectModel kerbalSimObject, Action<IGGuid> modelCreatedCallback, Action<SimulationObjectView> viewCreatedCallback)

Parameters

definition FlagComponentDefinition
kerbalSimObject SimulationObjectModel
modelCreatedCallback Action<IGGuid>
viewCreatedCallback Action<SimulationObjectView>

CreateKerbalSimObject(Position, Rotation, KerbalInfo, int, Action<IGGuid>)

public static SimulationObjectModel CreateKerbalSimObject(Position spawnPos, Rotation spawnRot, KerbalInfo kerbalInfo, int seatIdx, Action<IGGuid> createdCallback)

Parameters

spawnPos Position
spawnRot Rotation
kerbalInfo KerbalInfo
seatIdx int
createdCallback Action<IGGuid>

Returns

SimulationObjectModel

CreateKerbalSimObject(SerializedLocation, KerbalInfo, int, Action<IGGuid>, bool)

public static SimulationObjectModel CreateKerbalSimObject(SerializedLocation location, KerbalInfo kerbalInfo, int seatIdx, Action<IGGuid> createdCallback, bool createdFromEVA = false)

Parameters

location SerializedLocation
kerbalInfo KerbalInfo
seatIdx int
createdCallback Action<IGGuid>
createdFromEVA bool

Returns

SimulationObjectModel

CreateKerbalSimObject(SimulationObjectModel, PartBehavior, KerbalInfo, int, Action<IGGuid>)

public static SimulationObjectModel CreateKerbalSimObject(SimulationObjectModel vesselSimObject, PartBehavior vesselPartBehavior, KerbalInfo kerbalInfo, int seatIdx, Action<IGGuid> createdCallback)

Parameters

vesselSimObject SimulationObjectModel
vesselPartBehavior PartBehavior
kerbalInfo KerbalInfo
seatIdx int
createdCallback Action<IGGuid>

Returns

SimulationObjectModel

GetFirstLadderOrAirlockPhysicsSpacePosRot(PartBehavior, bool, out Vector3, out Quaternion)

public static bool GetFirstLadderOrAirlockPhysicsSpacePosRot(PartBehavior vesselPartBehavior, bool applySpawnOffset, out Vector3 position, out Quaternion rotation)

Parameters

vesselPartBehavior PartBehavior
applySpawnOffset bool
position Vector3
rotation Quaternion

Returns

bool

TryStartEVA(PartBehavior, int)

public static bool TryStartEVA(PartBehavior partBehavior, int seatIdx)

Parameters

partBehavior PartBehavior
seatIdx int

Returns

bool

TryStopEVA(IGGuid, IGGuid, PartBehavior)

public static bool TryStopEVA(IGGuid kerbalVesselId, IGGuid kerbalId, PartBehavior part)

Parameters

kerbalVesselId IGGuid
kerbalId IGGuid
part PartBehavior

Returns

bool