Table of Contents

Class Module_Deployable

Namespace
KSP.Modules
Assembly
Assembly-CSharp.dll
public class Module_Deployable : PartBehaviourModule, IPartModule, IFixedUpdate, IPriorityOverride, IUpdate, IObjectAssemblyPartModule, IMultipleDragCube, ILateUpdate
Inheritance
Module_Deployable
Implements
Derived
Inherited Members
Extension Methods

Constructors

Module_Deployable()

public Module_Deployable()

Fields

DRAGCUBE_EXTENDED_NAME

public const string DRAGCUBE_EXTENDED_NAME = "EXTENDED"

Field Value

string

DRAGCUBE_PACKED_NAME

public const string DRAGCUBE_PACKED_NAME = "PACKED"

Field Value

string

DRAGCUBE_RETRACTED_NAME

public const string DRAGCUBE_RETRACTED_NAME = "RETRACTED"

Field Value

string

DefaultDragCubeNames

public static readonly string[] DefaultDragCubeNames

Field Value

string[]

EPSILON

public const float EPSILON = 1E-05

Field Value

float

_actionExtend

protected ModuleAction _actionExtend

Field Value

ModuleAction

_actionPendingCompletion

protected bool _actionPendingCompletion

Field Value

bool

_blockingObject

protected string _blockingObject

Field Value

string

_trackingLOS

protected bool _trackingLOS

Field Value

bool

animator

public Animator animator

Field Value

Animator

dataDeployable

protected Data_Deployable dataDeployable

Field Value

Data_Deployable

dragCubeNames

public string[] dragCubeNames

Field Value

string[]

hasPivot

public bool hasPivot

Field Value

bool

panelRotationTransform

public Transform panelRotationTransform

Field Value

Transform

secondaryTransform

public Transform secondaryTransform

Field Value

Transform

trackingBody

public CelestialFrame trackingBody

Field Value

CelestialFrame

trackingTransform

public ITransformModel trackingTransform

Field Value

ITransformModel

Properties

CurrentAnimNormalizedTime

public float CurrentAnimNormalizedTime { get; }

Property Value

float

IsMultipleCubesActive

public bool IsMultipleCubesActive { get; }

Property Value

bool

PartComponentModuleType

public override Type PartComponentModuleType { get; }

Property Value

Type

Methods

AddDataModules()

protected override void AddDataModules()

AssumeDragCubePosition(string)

public void AssumeDragCubePosition(string name)

Parameters

name string

CalculateTracking(float)

protected virtual void CalculateTracking(float deltaTime)

Parameters

deltaTime float

CalculateTrackingLOS(Vector3, ref string)

public virtual bool CalculateTrackingLOS(Vector3 trackingDirection, ref string blocker)

Parameters

trackingDirection Vector3
blocker string

Returns

bool

Extend()

protected virtual bool Extend()

Returns

bool

GetDragCubeNames()

public string[] GetDragCubeNames()

Returns

string[]

GetModuleDisplayName()

public override string GetModuleDisplayName()

Returns

string

GetTrackingBodyTransformFrame()

protected virtual void GetTrackingBodyTransformFrame()

HasTrackerReturnedToOrigin(float)

protected virtual bool HasTrackerReturnedToOrigin(float deltaTime)

Parameters

deltaTime float

Returns

bool

OnAnimStateEnter(Animator, int)

public override void OnAnimStateEnter(Animator animator, int stateMachinePathHash)

Parameters

animator Animator
stateMachinePathHash int

OnEnable()

protected void OnEnable()

OnInitialize()

protected override void OnInitialize()

OnInitializeVisuals()

protected void OnInitializeVisuals()

OnLateUpdate()

public void OnLateUpdate()

OnModuleFixedUpdate(float)

protected override void OnModuleFixedUpdate(float fixedDeltaTime)

Parameters

fixedDeltaTime float

OnModuleOABFixedUpdate(float)

protected override void OnModuleOABFixedUpdate(float fixedDeltaTime)

Parameters

fixedDeltaTime float

OnShutdown()

protected override void OnShutdown()

OnToggleExtendChanged(bool)

protected virtual void OnToggleExtendChanged(bool newToggleExtendValue)

Parameters

newToggleExtendValue bool

PostCalculateTracking(bool, Vector3)

public virtual void PostCalculateTracking(bool trackingLOS, Vector3 trackingDirection)

Parameters

trackingLOS bool
trackingDirection Vector3

Retract()

protected virtual bool Retract()

Returns

bool

SetDeployActionAvailability(bool, bool)

public void SetDeployActionAvailability(bool available, bool notify = true)

Parameters

available bool
notify bool

UpdateAerodynamics()

protected virtual void UpdateAerodynamics()

UpdateDeployStateToFullStop()

protected virtual void UpdateDeployStateToFullStop()

UpdateDeployment(float)

protected virtual void UpdateDeployment(float fixedDeltaTime)

Parameters

fixedDeltaTime float

UsesProceduralDragCubes()

public bool UsesProceduralDragCubes()

Returns

bool