Class ObjectAssemblyInputHandler
- Namespace
- KSP.OAB
- Assembly
- Assembly-CSharp.dll
public class ObjectAssemblyInputHandler
- Inheritance
-
ObjectAssemblyInputHandler
- Inherited Members
-
- Extension Methods
-
Constructors
public ObjectAssemblyInputHandler(ObjectAssemblyBuilderEvents eventsBuilder, ObjectAssemblyUIEvents eventsUI, OABSessionInformation stats, ObjectAssemblyCameraManager cameraManager, ObjectAssemblyAssets assets, ObjectAssemblyBehaviorValues behaviorValues, Transform stageCenter)
Parameters
eventsBuilder ObjectAssemblyBuilderEvents
eventsUI ObjectAssemblyUIEvents
stats OABSessionInformation
cameraManager ObjectAssemblyCameraManager
assets ObjectAssemblyAssets
behaviorValues ObjectAssemblyBehaviorValues
stageCenter Transform
Fields
public bool UIDeletionBlocked
Field Value
- bool
public Transform currentlySelectedObject
Field Value
- Transform
public Transform previouslySelectedObject
Field Value
- Transform
Properties
public float CurrentZoomDelta { get; }
Property Value
- float
public DottedLine DottedLineObject { get; set; }
Property Value
- DottedLine
public Plane DragPlane { get; set; }
Property Value
- Plane
public bool IsAltModifierActive { get; set; }
Property Value
- bool
public bool IsCtrlModifierActive { get; set; }
Property Value
- bool
public bool IsDisabledStackAttachment { get; set; }
Property Value
- bool
public bool IsSpeedModifierActive { get; }
Property Value
- bool
public Vector2 KeyboardMovement { get; set; }
Property Value
- Vector2
public bool MouseIsUnlocked { get; }
Property Value
- bool
public OABMouseActionType MouseLockedAction { get; }
Property Value
- OABMouseActionType
public PartPositionInfo PartPositionInfo { get; set; }
Property Value
- PartPositionInfo
public Plane PickupPlane { get; set; }
Property Value
- Plane
public float PlacementPlaneDistance { get; set; }
Property Value
- float
public Vector3 RightAxisDelta { get; }
Property Value
- Vector3
public Transform StageCenterTransform { get; }
Property Value
- Transform
Methods
public void DestroyAssets()
public Ray GetCameraRay()
Returns
- Ray
public Vector2 GetScreenSpaceCursorPositionInPixels()
Returns
- Vector2
public Vector3 GetWorldSpaceCursorNormal()
Returns
- Vector3
public Vector3 GetWorldSpaceCursorPosition()
Returns
- Vector3
public Vector3 GetWorldSpaceCursorPosition(out RaycastHit hitInfo, out IObjectAssemblyPart hitPart, bool hitClosestCollider = false)
Parameters
hitInfo RaycastHit
hitPart IObjectAssemblyPart
hitClosestCollider bool
Returns
- Vector3
public void Initialize(ObjectAssemblyPartTracker partTrackerToUse)
Parameters
partTrackerToUse ObjectAssemblyPartTracker
public bool RaycastValidParts(out RaycastHit hitInfo, out IObjectAssemblyPart hitPart, bool hitClosesCollider = false)
Parameters
hitInfo RaycastHit
hitPart IObjectAssemblyPart
hitClosesCollider bool
Returns
- bool
public void SetCursor(OABCursorType type)
Parameters
type OABCursorType
public void SetCursor(Sprite sprite)
Parameters
sprite Sprite