C# 클래스 KAS.KASModuleWinch

상속: KASModuleAttachCore, IJointLockState
파일 보기 프로젝트 열기: KospY/KAS 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
OnDestroy ( ) : void
OnPartDie ( ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

BringMotorToSpeed() 공개 메소드

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
리턴 void

ChangePlugMode() 공개 메소드

public ChangePlugMode ( PlugState newPlugMode ) : void
newPlugMode PlugState
리턴 void

CheckBlocked() 공개 메소드

public CheckBlocked ( bool message = false ) : bool
message bool
리턴 bool

Deploy() 공개 메소드

public Deploy ( bool delayPhysics = false ) : void
delayPhysics bool
리턴 void

DropHead() 공개 메소드

public DropHead ( ) : void
리턴 void

Eject() 공개 메소드

public Eject ( ) : void
리턴 void

EventWinchEject() 공개 메소드

public EventWinchEject ( ) : void
리턴 void

EventWinchExtend() 공개 메소드

public EventWinchExtend ( bool activated ) : void
activated bool
리턴 void

EventWinchHeadLeft() 공개 메소드

public EventWinchHeadLeft ( ) : void
리턴 void

EventWinchHeadRight() 공개 메소드

public EventWinchHeadRight ( ) : void
리턴 void

EventWinchHook() 공개 메소드

public EventWinchHook ( ) : void
리턴 void

EventWinchRetract() 공개 메소드

public EventWinchRetract ( bool activated ) : void
activated bool
리턴 void

GetHookGrapple() 공개 메소드

public GetHookGrapple ( ) : KAS.KASModuleHarpoon
리턴 KAS.KASModuleHarpoon

GetHookMagnet() 공개 메소드

public GetHookMagnet ( ) : KAS.KASModuleMagnet
리턴 KAS.KASModuleMagnet

GetInfo() 공개 메소드

public GetInfo ( ) : string
리턴 string

GrabHead() 공개 메소드

public GrabHead ( Vessel kerbalEvaVessel, KASModulePort grabbedPort = null ) : void
kerbalEvaVessel Vessel
grabbedPort KASModulePort
리턴 void

IsJointUnlocked() 공개 메소드

public IsJointUnlocked ( ) : bool
리턴 bool

Lock() 공개 메소드

public Lock ( ) : void
리턴 void

LockHead() 공개 메소드

public LockHead ( ) : void
리턴 void

OnCrewBoardVessel() 공개 메소드

public OnCrewBoardVessel ( Part>.GameEvents fromToAction ) : void
fromToAction Part>.GameEvents
리턴 void

OnDestroy() 보호된 메소드

protected OnDestroy ( ) : void
리턴 void

OnFullRetract() 공개 메소드

public OnFullRetract ( ) : void
리턴 void

OnLoad() 공개 메소드

public OnLoad ( ConfigNode node ) : void
node System.ConfigNode
리턴 void

OnPartDie() 보호된 메소드

protected OnPartDie ( ) : void
리턴 void

OnPartUnpack() 공개 메소드

public OnPartUnpack ( ) : void
리턴 void

OnSave() 공개 메소드

public OnSave ( ConfigNode node ) : void
node System.ConfigNode
리턴 void

OnStart() 공개 메소드

public OnStart ( StartState state ) : void
state StartState
리턴 void

OnUpdate() 공개 메소드

public OnUpdate ( ) : void
리턴 void

OnVesselGoOffRails() 공개 메소드

public OnVesselGoOffRails ( Vessel vess ) : void
vess Vessel
리턴 void

OnVesselGoOnRails() 공개 메소드

public OnVesselGoOnRails ( Vessel vess ) : void
vess Vessel
리턴 void

PlugHead() 공개 메소드

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
리턴 void

RefreshControlState() 공개 메소드

public RefreshControlState ( ) : void
리턴 void

SetCableJointConnectedBody() 공개 메소드

public SetCableJointConnectedBody ( Rigidbody newBody ) : void
newBody UnityEngine.Rigidbody
리턴 void

SetHeadToPhysic() 공개 메소드

public SetHeadToPhysic ( bool active, bool delayPhysics = false ) : void
active bool
delayPhysics bool
리턴 void

SetTubeRenderer() 공개 메소드

public SetTubeRenderer ( bool activated ) : void
activated bool
리턴 void

TogglePlugMode() 공개 메소드

public TogglePlugMode ( ) : void
리턴 void

UnplugHead() 공개 메소드

public UnplugHead ( bool fireSound = true ) : void
fireSound bool
리턴 void

프로퍼티 상세

cableJoint 공개적으로 프로퍼티

public SpringJoint,UnityEngine cableJoint
리턴 UnityEngine.SpringJoint

connectedPortInfo 공개적으로 프로퍼티

public PortInfo connectedPortInfo
리턴 PortInfo

evaHolderPart 공개적으로 프로퍼티

public Part evaHolderPart
리턴 Part

extend 공개적으로 프로퍼티

public KAS_Shared.cableControl,KAS extend
리턴 KAS_Shared.cableControl

fxSndEject 공개적으로 프로퍼티

public FXGroup fxSndEject
리턴 FXGroup

fxSndHeadGrab 공개적으로 프로퍼티

public FXGroup fxSndHeadGrab
리턴 FXGroup

fxSndHeadLock 공개적으로 프로퍼티

public FXGroup fxSndHeadLock
리턴 FXGroup

fxSndMotor 공개적으로 프로퍼티

public FXGroup fxSndMotor
리턴 FXGroup

fxSndMotorStart 공개적으로 프로퍼티

public FXGroup fxSndMotorStart
리턴 FXGroup

fxSndMotorStop 공개적으로 프로퍼티

public FXGroup fxSndMotorStop
리턴 FXGroup

grabbedPortModule 공개적으로 프로퍼티

public KASModulePort,KAS grabbedPortModule
리턴 KASModulePort

guiRepeatExtend 공개적으로 프로퍼티

public bool guiRepeatExtend
리턴 bool

guiRepeatRetract 공개적으로 프로퍼티

public bool guiRepeatRetract
리턴 bool

guiRepeatTurnLeft 공개적으로 프로퍼티

public bool guiRepeatTurnLeft
리턴 bool

guiRepeatTurnRight 공개적으로 프로퍼티

public bool guiRepeatTurnRight
리턴 bool

headPortNode 공개적으로 프로퍼티

public Transform,UnityEngine headPortNode
리턴 UnityEngine.Transform

headTransform 공개적으로 프로퍼티

public Transform,UnityEngine headTransform
리턴 UnityEngine.Transform

highLightStarted 공개적으로 프로퍼티

public bool highLightStarted
리턴 bool

isActive 공개적으로 프로퍼티

public bool isActive
리턴 bool

motorSpeed 공개적으로 프로퍼티

public float motorSpeed
리턴 float

motorSpeedSetting 공개적으로 프로퍼티

public float motorSpeedSetting
리턴 float

release 공개적으로 프로퍼티

public KAS_Shared.cableControl,KAS release
리턴 KAS_Shared.cableControl

retract 공개적으로 프로퍼티

public KAS_Shared.cableControl,KAS retract
리턴 KAS_Shared.cableControl

tubeRenderer 공개적으로 프로퍼티

public KAS_Tube,KAS tubeRenderer
리턴 KAS.KAS_Tube