Interface IObjectAssembly
- Namespace
- KSP.OAB
- Assembly
- Assembly-CSharp.dll
public interface IObjectAssembly
- Extension Methods
-
Properties
Anchor
IObjectAssemblyPart Anchor { get; }
Property Value
- IObjectAssemblyPart
CenterOfProperties
CenterOfPhysicalProperties CenterOfProperties { get; set; }
Property Value
- CenterOfPhysicalProperties
FlowGraph
FlowGraph FlowGraph { get; }
Property Value
- FlowGraph
Nodes
List<IObjectAssemblyPartNode> Nodes { get; }
Property Value
- List<IObjectAssemblyPartNode>
Parts
List<IObjectAssemblyPart> Parts { get; }
Property Value
- List<IObjectAssemblyPart>
ResourceFlowRequestManager
ResourceFlowRequestManager ResourceFlowRequestManager { get; }
Property Value
- ResourceFlowRequestManager
VesselDeltaV
VesselDeltaVComponent VesselDeltaV { get; }
Property Value
- VesselDeltaVComponent
Methods
AddPart(IObjectAssemblyPart)
void AddPart(IObjectAssemblyPart partToAdd)
Parameters
partToAdd IObjectAssemblyPart
DestroyAnchorIcons()
void DestroyAnchorIcons()
DestroyAssembly()
DestroyLaunchIcon()
GetBoundingBox()
Returns
- Bounds
GetCenterOfMass()
Vector3d GetCenterOfMass()
Returns
- Vector3d
GetCenterOfThrust()
Returns
- Ray
GetDryMass()
Returns
- double
GetNumberOfParts()
Returns
- int
GetTotalMass()
Returns
- double
GetWetMass()
Returns
- double
HasPartWithName(List<string>, bool)
bool HasPartWithName(List<string> partNames, bool exactMatch)
Parameters
partNames List<string>
exactMatch bool
Returns
- bool
HasParts()
Returns
- bool
Initialize(IObjectAssemblyPart, ObjectAssemblyBuilderEvents)
void Initialize(IObjectAssemblyPart anchor, ObjectAssemblyBuilderEvents events)
Parameters
anchor IObjectAssemblyPart
events ObjectAssemblyBuilderEvents
IsLaunchAssembly()
Returns
- bool
MarkAsLaunchAssembly(bool)
void MarkAsLaunchAssembly(bool b)
Parameters
b bool
MouseEnter(bool)
void MouseEnter(bool grabbingPart = false)
Parameters
grabbingPart bool
MouseLeave()
RemovePart(IObjectAssemblyPart)
void RemovePart(IObjectAssemblyPart partToRemove)
Parameters
partToRemove IObjectAssemblyPart
SetAnchor(IObjectAssemblyPart, bool)
void SetAnchor(IObjectAssemblyPart anchor, bool resetResourceSolvers = false)
Parameters
anchor IObjectAssemblyPart
resetResourceSolvers bool
SetAnchorExternal(IObjectAssemblyPart, bool)
void SetAnchorExternal(IObjectAssemblyPart anchor, bool resetResourceSolvers = false)
Parameters
anchor IObjectAssemblyPart
resetResourceSolvers bool
SetHoveredOverPart(IObjectAssemblyPart)
void SetHoveredOverPart(IObjectAssemblyPart hoverPart)
Parameters
hoverPart IObjectAssemblyPart
TryGetPartBehaviourModule<T>(out T)
bool TryGetPartBehaviourModule<T>(out T foundPartModule) where T : PartBehaviourModule
Parameters
foundPartModule T
Returns
- bool
Type Parameters
T
TryGetPartBehaviourModules<T>(out List<T>)
bool TryGetPartBehaviourModules<T>(out List<T> foundPartModules) where T : PartBehaviourModule
Parameters
foundPartModules List<T>
Returns
- bool
Type Parameters
T
TryGetPartsByResource(string, FlowDirection, out List<IObjectAssemblyPart>)
bool TryGetPartsByResource(string resourceName, FlowDirection direction, out List<IObjectAssemblyPart> foundParts)
Parameters
resourceName string
direction FlowDirection
foundParts List<IObjectAssemblyPart>
Returns
- bool
TryGetPartsWithResourceCapacity(string, out List<IObjectAssemblyPart>)
bool TryGetPartsWithResourceCapacity(string resourceName, out List<IObjectAssemblyPart> foundParts)
Parameters
resourceName string
foundParts List<IObjectAssemblyPart>
Returns
- bool
TryGetPartsWithResourceStored(string, out List<IObjectAssemblyPart>)
bool TryGetPartsWithResourceStored(string resourceName, out List<IObjectAssemblyPart> foundParts)
Parameters
resourceName string
foundParts List<IObjectAssemblyPart>
Returns
- bool
UpdateAssemblyIcons(IObjectAssemblyPart)
void UpdateAssemblyIcons(IObjectAssemblyPart partGrabbed)
Parameters
partGrabbed IObjectAssemblyPart
UpdateAssemblyIconsPosition(Camera)
void UpdateAssemblyIconsPosition(Camera curCamera)
Parameters
curCamera Camera
UpdateAssemblyPartAnchorIcons(IObjectAssemblyPart)
void UpdateAssemblyPartAnchorIcons(IObjectAssemblyPart partGrabbed)
Parameters
partGrabbed IObjectAssemblyPart
UpdateAssemblyPartAnchorIconsPosition(Camera)
void UpdateAssemblyPartAnchorIconsPosition(Camera curCamera)
Parameters
curCamera Camera