C# Class KAS.KASModuleWinch

Inheritance: KASModuleAttachCore, IJointLockState
Afficher le fichier Open project: KospY/KAS Class Usage Examples

Méthodes publiques

Свойство Type Description
cableJoint UnityEngine.SpringJoint
connectedPortInfo PortInfo
evaHolderPart Part
extend KAS_Shared.cableControl
fxSndEject FXGroup
fxSndHeadGrab FXGroup
fxSndHeadLock FXGroup
fxSndMotor FXGroup
fxSndMotorStart FXGroup
fxSndMotorStop FXGroup
grabbedPortModule KASModulePort
guiRepeatExtend bool
guiRepeatRetract bool
guiRepeatTurnLeft bool
guiRepeatTurnRight bool
headPortNode UnityEngine.Transform
headTransform UnityEngine.Transform
highLightStarted bool
isActive bool
motorSpeed float
motorSpeedSetting float
release KAS_Shared.cableControl
retract KAS_Shared.cableControl
tubeRenderer KAS.KAS_Tube

Méthodes publiques

Méthode Description
BringMotorToSpeed ( float targetSpeed ) : void

Accelerates or decelerates the motor to match the target speed.

Acceleration is controlled via motorAcceleration which specifies speed change per second.

ChangePlugMode ( PlugState newPlugMode ) : void
CheckBlocked ( bool message = false ) : bool
Deploy ( bool delayPhysics = false ) : void
DropHead ( ) : void
Eject ( ) : void
EventWinchEject ( ) : void
EventWinchExtend ( bool activated ) : void
EventWinchHeadLeft ( ) : void
EventWinchHeadRight ( ) : void
EventWinchHook ( ) : void
EventWinchRetract ( bool activated ) : void
GetHookGrapple ( ) : KAS.KASModuleHarpoon
GetHookMagnet ( ) : KAS.KASModuleMagnet
GetInfo ( ) : string
GrabHead ( Vessel kerbalEvaVessel, KASModulePort grabbedPort = null ) : void
IsJointUnlocked ( ) : bool
Lock ( ) : void
LockHead ( ) : void
OnCrewBoardVessel ( Part>.GameEvents fromToAction ) : void
OnFullRetract ( ) : void
OnLoad ( ConfigNode node ) : void
OnPartUnpack ( ) : void
OnSave ( ConfigNode node ) : void
OnStart ( StartState state ) : void
OnUpdate ( ) : void
OnVesselGoOffRails ( Vessel vess ) : void
OnVesselGoOnRails ( Vessel vess ) : void
PlugHead ( KASModulePort portModule, PlugState plugMode, bool fromSave = false, bool fireSound = true, bool alreadyDocked = false ) : void
RefreshControlState ( ) : void
SetCableJointConnectedBody ( Rigidbody newBody ) : void
SetHeadToPhysic ( bool active, bool delayPhysics = false ) : void
SetTubeRenderer ( bool activated ) : void
TogglePlugMode ( ) : void
UnplugHead ( bool fireSound = true ) : void

Méthodes protégées

Méthode Description
OnDestroy ( ) : void
OnPartDie ( ) : void

Private Methods

Méthode Description
ActionGroupDisableInvertedKeyControl ( KSPActionParam param ) : void
ActionGroupDisableKeyControl ( KSPActionParam param ) : void
ActionGroupEject ( KSPActionParam param ) : void
ActionGroupEnableInvertedKeyControl ( KSPActionParam param ) : void
ActionGroupEnableKeyControl ( KSPActionParam param ) : void
ActionGroupExtend ( KSPActionParam param ) : void
ActionGroupPlugMode ( KSPActionParam param ) : void
ActionGroupRelease ( KSPActionParam param ) : void
ActionGroupRetract ( KSPActionParam param ) : void
ActionGroupToggleInvertedKeyControl ( KSPActionParam param ) : void
ActionGroupToggleKeyControl ( KSPActionParam param ) : void
ActionGroupUnplug ( KSPActionParam param ) : void
ContextMenuCableStretch ( ) : void
ContextMenuEject ( ) : void
ContextMenuExtend ( ) : void
ContextMenuGUI ( ) : void
ContextMenuGrabHead ( ) : void
ContextMenuInvertControl ( ) : void
ContextMenuLockHead ( ) : void
ContextMenuPlugMode ( ) : void
ContextMenuRelease ( ) : void
ContextMenuRetract ( ) : void
ContextMenuToggleControl ( ) : void
ContextMenuUnplug ( ) : void
DisableWinch ( ) : void
IsLockable ( ) : bool
LimitFreeFlyDistance ( Rigidbody rb, float maxLength ) : IEnumerator

A coroutine to restore performance collision check mode.

Given the maximum length of the cable this coroutine estimates how long will it take for a harpoon to hit anything, and this time is used as a timeout. When a target is hit the collision check mode get reset in the harpoon's code right at the impact. If harpoon hit nothing then this coroutine will disable the mode by timeout.

StopExtend ( ) : void
StopRetract ( ) : void
UpdateMotor ( ) : void
UpdateOrgPos ( ) : void
WaitAndLoadConnection ( ) : IEnumerator

Method Details

BringMotorToSpeed() public méthode

Accelerates or decelerates the motor to match the target speed.
Acceleration is controlled via motorAcceleration which specifies speed change per second.
public BringMotorToSpeed ( float targetSpeed ) : void
targetSpeed float
Résultat void

ChangePlugMode() public méthode

public ChangePlugMode ( PlugState newPlugMode ) : void
newPlugMode PlugState
Résultat void

CheckBlocked() public méthode

public CheckBlocked ( bool message = false ) : bool
message bool
Résultat bool

Deploy() public méthode

public Deploy ( bool delayPhysics = false ) : void
delayPhysics bool
Résultat void

DropHead() public méthode

public DropHead ( ) : void
Résultat void

Eject() public méthode

public Eject ( ) : void
Résultat void

EventWinchEject() public méthode

public EventWinchEject ( ) : void
Résultat void

EventWinchExtend() public méthode

public EventWinchExtend ( bool activated ) : void
activated bool
Résultat void

EventWinchHeadLeft() public méthode

public EventWinchHeadLeft ( ) : void
Résultat void

EventWinchHeadRight() public méthode

public EventWinchHeadRight ( ) : void
Résultat void

EventWinchHook() public méthode

public EventWinchHook ( ) : void
Résultat void

EventWinchRetract() public méthode

public EventWinchRetract ( bool activated ) : void
activated bool
Résultat void

GetHookGrapple() public méthode

public GetHookGrapple ( ) : KAS.KASModuleHarpoon
Résultat KAS.KASModuleHarpoon

GetHookMagnet() public méthode

public GetHookMagnet ( ) : KAS.KASModuleMagnet
Résultat KAS.KASModuleMagnet

GetInfo() public méthode

public GetInfo ( ) : string
Résultat string

GrabHead() public méthode

public GrabHead ( Vessel kerbalEvaVessel, KASModulePort grabbedPort = null ) : void
kerbalEvaVessel Vessel
grabbedPort KASModulePort
Résultat void

IsJointUnlocked() public méthode

public IsJointUnlocked ( ) : bool
Résultat bool

Lock() public méthode

public Lock ( ) : void
Résultat void

LockHead() public méthode

public LockHead ( ) : void
Résultat void

OnCrewBoardVessel() public méthode

public OnCrewBoardVessel ( Part>.GameEvents fromToAction ) : void
fromToAction Part>.GameEvents
Résultat void

OnDestroy() protected méthode

protected OnDestroy ( ) : void
Résultat void

OnFullRetract() public méthode

public OnFullRetract ( ) : void
Résultat void

OnLoad() public méthode

public OnLoad ( ConfigNode node ) : void
node System.ConfigNode
Résultat void

OnPartDie() protected méthode

protected OnPartDie ( ) : void
Résultat void

OnPartUnpack() public méthode

public OnPartUnpack ( ) : void
Résultat void

OnSave() public méthode

public OnSave ( ConfigNode node ) : void
node System.ConfigNode
Résultat void

OnStart() public méthode

public OnStart ( StartState state ) : void
state StartState
Résultat void

OnUpdate() public méthode

public OnUpdate ( ) : void
Résultat void

OnVesselGoOffRails() public méthode

public OnVesselGoOffRails ( Vessel vess ) : void
vess Vessel
Résultat void

OnVesselGoOnRails() public méthode

public OnVesselGoOnRails ( Vessel vess ) : void
vess Vessel
Résultat void

PlugHead() public méthode

public PlugHead ( KASModulePort portModule, PlugState plugMode, bool fromSave = false, bool fireSound = true, bool alreadyDocked = false ) : void
portModule KASModulePort
plugMode PlugState
fromSave bool
fireSound bool
alreadyDocked bool
Résultat void

RefreshControlState() public méthode

public RefreshControlState ( ) : void
Résultat void

SetCableJointConnectedBody() public méthode

public SetCableJointConnectedBody ( Rigidbody newBody ) : void
newBody UnityEngine.Rigidbody
Résultat void

SetHeadToPhysic() public méthode

public SetHeadToPhysic ( bool active, bool delayPhysics = false ) : void
active bool
delayPhysics bool
Résultat void

SetTubeRenderer() public méthode

public SetTubeRenderer ( bool activated ) : void
activated bool
Résultat void

TogglePlugMode() public méthode

public TogglePlugMode ( ) : void
Résultat void

UnplugHead() public méthode

public UnplugHead ( bool fireSound = true ) : void
fireSound bool
Résultat void

Property Details

cableJoint public_oe property

public SpringJoint,UnityEngine cableJoint
Résultat UnityEngine.SpringJoint

connectedPortInfo public_oe property

public PortInfo connectedPortInfo
Résultat PortInfo

evaHolderPart public_oe property

public Part evaHolderPart
Résultat Part

extend public_oe property

public KAS_Shared.cableControl,KAS extend
Résultat KAS_Shared.cableControl

fxSndEject public_oe property

public FXGroup fxSndEject
Résultat FXGroup

fxSndHeadGrab public_oe property

public FXGroup fxSndHeadGrab
Résultat FXGroup

fxSndHeadLock public_oe property

public FXGroup fxSndHeadLock
Résultat FXGroup

fxSndMotor public_oe property

public FXGroup fxSndMotor
Résultat FXGroup

fxSndMotorStart public_oe property

public FXGroup fxSndMotorStart
Résultat FXGroup

fxSndMotorStop public_oe property

public FXGroup fxSndMotorStop
Résultat FXGroup

grabbedPortModule public_oe property

public KASModulePort,KAS grabbedPortModule
Résultat KASModulePort

guiRepeatExtend public_oe property

public bool guiRepeatExtend
Résultat bool

guiRepeatRetract public_oe property

public bool guiRepeatRetract
Résultat bool

guiRepeatTurnLeft public_oe property

public bool guiRepeatTurnLeft
Résultat bool

guiRepeatTurnRight public_oe property

public bool guiRepeatTurnRight
Résultat bool

headPortNode public_oe property

public Transform,UnityEngine headPortNode
Résultat UnityEngine.Transform

headTransform public_oe property

public Transform,UnityEngine headTransform
Résultat UnityEngine.Transform

highLightStarted public_oe property

public bool highLightStarted
Résultat bool

isActive public_oe property

public bool isActive
Résultat bool

motorSpeed public_oe property

public float motorSpeed
Résultat float

motorSpeedSetting public_oe property

public float motorSpeedSetting
Résultat float

release public_oe property

public KAS_Shared.cableControl,KAS release
Résultat KAS_Shared.cableControl

retract public_oe property

public KAS_Shared.cableControl,KAS retract
Résultat KAS_Shared.cableControl

tubeRenderer public_oe property

public KAS_Tube,KAS tubeRenderer
Résultat KAS.KAS_Tube