Table of Contents

Class ObjectAssemblyCompoundPartTool

Namespace
KSP.OAB
Assembly
Assembly-CSharp.dll
public class ObjectAssemblyCompoundPartTool : ObjectAssemblyPlacementTool, IObjectAssemblyTool, IDisposable
Inheritance
ObjectAssemblyCompoundPartTool
Implements
Inherited Members
Extension Methods

Constructors

ObjectAssemblyCompoundPartTool(ObjectAssemblyBuilderEvents, ObjectAssemblyUIEvents, ObjectAssemblyInputHandler, ObjectAssemblyPartTracker, OABSessionInformation, ObjectAssemblyCameraManager, IObjectAssemblyAvailablePart, ObjectAssemblyAssets, List<IObjectAssemblyRelationship>, PartRelationshipType)

public ObjectAssemblyCompoundPartTool(ObjectAssemblyBuilderEvents eventSystemToUse, ObjectAssemblyUIEvents uiEventsToUse, ObjectAssemblyInputHandler inputToUse, ObjectAssemblyPartTracker partTrackerToUse, OABSessionInformation stats, ObjectAssemblyCameraManager cameraManagerToUse, IObjectAssemblyAvailablePart availablePart, ObjectAssemblyAssets oabAssets, List<IObjectAssemblyRelationship> relationships, PartRelationshipType toolMode)

Parameters

eventSystemToUse ObjectAssemblyBuilderEvents
uiEventsToUse ObjectAssemblyUIEvents
inputToUse ObjectAssemblyInputHandler
partTrackerToUse ObjectAssemblyPartTracker
stats OABSessionInformation
cameraManagerToUse ObjectAssemblyCameraManager
availablePart IObjectAssemblyAvailablePart
oabAssets ObjectAssemblyAssets
relationships List<IObjectAssemblyRelationship>
toolMode PartRelationshipType

ObjectAssemblyCompoundPartTool(ObjectAssemblyBuilderEvents, ObjectAssemblyUIEvents, ObjectAssemblyInputHandler, ObjectAssemblyPartTracker, OABSessionInformation, ObjectAssemblyCameraManager, IObjectAssemblyPart, ObjectAssemblyAssets, List<IObjectAssemblyRelationship>, bool)

public ObjectAssemblyCompoundPartTool(ObjectAssemblyBuilderEvents eventSystemToUse, ObjectAssemblyUIEvents uiEventsToUse, ObjectAssemblyInputHandler inputToUse, ObjectAssemblyPartTracker partTrackerToUse, OABSessionInformation stats, ObjectAssemblyCameraManager cameraManagerToUse, IObjectAssemblyPart heldPart, ObjectAssemblyAssets oabAssets, List<IObjectAssemblyRelationship> relationships, bool reCreateSavedEnd)

Parameters

eventSystemToUse ObjectAssemblyBuilderEvents
uiEventsToUse ObjectAssemblyUIEvents
inputToUse ObjectAssemblyInputHandler
partTrackerToUse ObjectAssemblyPartTracker
stats OABSessionInformation
cameraManagerToUse ObjectAssemblyCameraManager
heldPart IObjectAssemblyPart
oabAssets ObjectAssemblyAssets
relationships List<IObjectAssemblyRelationship>
reCreateSavedEnd bool

Fields

OnFinished

public Action OnFinished

Field Value

Action

Methods

CreateLinkerObjectFlight(PartBehavior, PartBehavior, Module_CompoundPart, Module_CompoundPart, ref StackObjectsBetweenTwoPoints)

public static void CreateLinkerObjectFlight(PartBehavior firstPart, PartBehavior secondPart, Module_CompoundPart firstModule, Module_CompoundPart secondModule, ref StackObjectsBetweenTwoPoints connectorObject)

Parameters

firstPart PartBehavior
secondPart PartBehavior
firstModule Module_CompoundPart
secondModule Module_CompoundPart
connectorObject StackObjectsBetweenTwoPoints

CreateLinkerObjectOAB(IObjectAssemblyPart, IObjectAssemblyPart, Module_CompoundPart, Module_CompoundPart, ObjectAssemblyBuilderEvents, ObjectAssemblyAssets, ref StackObjectsBetweenTwoPoints)

public static void CreateLinkerObjectOAB(IObjectAssemblyPart firstPart, IObjectAssemblyPart secondPart, Module_CompoundPart firstModule, Module_CompoundPart secondModule, ObjectAssemblyBuilderEvents events, ObjectAssemblyAssets assemblyAssets, ref StackObjectsBetweenTwoPoints connectorObject)

Parameters

firstPart IObjectAssemblyPart
secondPart IObjectAssemblyPart
firstModule Module_CompoundPart
secondModule Module_CompoundPart
events ObjectAssemblyBuilderEvents
assemblyAssets ObjectAssemblyAssets
connectorObject StackObjectsBetweenTwoPoints

OnLateUpdate()

protected override void OnLateUpdate()

OnPlacingPart(bool)

protected override void OnPlacingPart(bool isAttachedToSomethingElse)

Parameters

isAttachedToSomethingElse bool

ResetToolState(bool, IObjectAssemblyPart)

public void ResetToolState(bool deleteConnector = false, IObjectAssemblyPart partToDelete = null)

Parameters

deleteConnector bool
partToDelete IObjectAssemblyPart