Table of Contents

Class OABTestPart

Namespace
KSP.OAB
Assembly
Assembly-CSharp.dll
public class OABTestPart : MonoBehaviour, IObjectAssemblyPart, IFlowNode, IDeltaVPart, IEquatable<IDeltaVPart>
Inheritance
OABTestPart
Implements
Extension Methods

Constructors

OABTestPart()

public OABTestPart()

Properties

ActivationStage

public int ActivationStage { get; set; }

Property Value

int

Assembly

public IObjectAssembly Assembly { get; set; }

Property Value

IObjectAssembly

AssemblyRelativePosition

public Vector3 AssemblyRelativePosition { get; set; }

Property Value

Vector3

AssemblyRelativeRotation

public Quaternion AssemblyRelativeRotation { get; set; }

Property Value

Quaternion

AtmDensity

public double AtmDensity { get; }

Property Value

double

AtmDensityASL

public double AtmDensityASL { get; }

Property Value

double

AtmosphericTemperature

public double AtmosphericTemperature { get; }

Property Value

double

AtmosphericTemperatureASL

public double AtmosphericTemperatureASL { get; }

Property Value

double

AutomaticSuggestedRotation

public Quaternion AutomaticSuggestedRotation { get; set; }

Property Value

Quaternion

AvailablePart

public IObjectAssemblyAvailablePart AvailablePart { get; set; }

Property Value

IObjectAssemblyAvailablePart

BaseAttachmentRotation

public Quaternion BaseAttachmentRotation { get; }

Property Value

Quaternion

CanAttachToSurfaces

public bool CanAttachToSurfaces { get; }

Property Value

bool

CanHaveSurfaceAttachedTo

public bool CanHaveSurfaceAttachedTo { get; }

Property Value

bool

CanStage

public bool CanStage { get; set; }

Property Value

bool

CanSuggestOrientation

public bool CanSuggestOrientation { get; }

Property Value

bool

Category

public PartCategories Category { get; }

Property Value

PartCategories

Children

public List<IObjectAssemblyPart> Children { get; set; }

Property Value

List<IObjectAssemblyPart>

Colliders

public Collider[] Colliders { get; }

Property Value

Collider[]

Containers

public IResourceContainer[] Containers { get; }

Property Value

IResourceContainer[]

DecoupleStage

public int DecoupleStage { get; set; }

Property Value

int

DeltaVChildren

public List<IDeltaVPart> DeltaVChildren { get; }

Property Value

List<IDeltaVPart>

DeltaVContainers

public IResourceContainer[] DeltaVContainers { get; }

Property Value

IResourceContainer[]

DryMass

public double DryMass { get; }

Property Value

double

FuelCrossFeed

public bool FuelCrossFeed { get; set; }

Property Value

bool

GlobalId

public IGGuid GlobalId { get; }

Property Value

IGGuid

GreenMass

public double GreenMass { get; }

Property Value

double

GuidString

public string GuidString { get; }

Property Value

string

HighlightColor

public Color HighlightColor { get; set; }

Property Value

Color

Highlighted

public bool Highlighted { get; set; }

Property Value

bool

InStageIndex

public int InStageIndex { get; set; }

Property Value

int

IsActiveInStaging

public bool IsActiveInStaging { get; }

Property Value

bool

IsCompound

public bool IsCompound { get; }

Property Value

bool

IsFinalized

public bool IsFinalized { get; set; }

Property Value

bool

IsSymmetryMirrored

public bool IsSymmetryMirrored { get; set; }

Property Value

bool

MirrorTechnique

public MirrorTechnique MirrorTechnique { get; }

Property Value

MirrorTechnique

Modules

public DictionaryValueList<Type, IPartModule> Modules { get; }

Property Value

DictionaryValueList<Type, IPartModule>

MyNodeConnectedToParent

public IObjectAssemblyPartNode MyNodeConnectedToParent { get; }

Property Value

IObjectAssemblyPartNode

Name

public string Name { get; }

Property Value

string

Nodes

public List<IObjectAssemblyPartNode> Nodes { get; }

Property Value

List<IObjectAssemblyPartNode>

OrientationPreference

public OABOrientation OrientationPreference { get; }

Property Value

OABOrientation

OriginalNodeLocalAttachPosition

public Vector3 OriginalNodeLocalAttachPosition { get; set; }

Property Value

Vector3

OriginalPart

public IObjectAssemblyPart OriginalPart { get; }

Property Value

IObjectAssemblyPart

OriginalPartLocalAttachPosition

public Vector3 OriginalPartLocalAttachPosition { get; set; }

Property Value

Vector3

Parent

public IDeltaVPart Parent { get; }

Property Value

IDeltaVPart

ParentNodeConnectedToMe

public IObjectAssemblyPartNode ParentNodeConnectedToMe { get; }

Property Value

IObjectAssemblyPartNode

ParentNodeRelativePosition

public Vector3 ParentNodeRelativePosition { get; set; }

Property Value

Vector3

ParentNodeRelativeRotation

public Quaternion ParentNodeRelativeRotation { get; set; }

Property Value

Quaternion

ParentPart

public IObjectAssemblyPart ParentPart { get; }

Property Value

IObjectAssemblyPart

ParentPartRelativePosition

public Vector3 ParentPartRelativePosition { get; set; }

Property Value

Vector3

ParentPartRelativeRotation

public Quaternion ParentPartRelativeRotation { get; set; }

Property Value

Quaternion

PartName

public string PartName { get; }

Property Value

string

PartSize

public AssemblySizeFilterType PartSize { get; }

Property Value

AssemblySizeFilterType

PartTransform

public Transform PartTransform { get; }

Property Value

Transform

PickupPointOffset

public Vector3 PickupPointOffset { get; }

Property Value

Vector3

PickupRotationPointOffset

public Vector3 PickupRotationPointOffset { get; }

Property Value

Vector3

RawPartModules

public List<SerializedPartModule> RawPartModules { get; set; }

Property Value

List<SerializedPartModule>

ResourceCosts

public PartResourceCostDefinition[] ResourceCosts { get; }

Property Value

PartResourceCostDefinition[]

ResourceFlowRequestBroker

public ResourceFlowRequestBroker ResourceFlowRequestBroker { get; set; }

Property Value

ResourceFlowRequestBroker

Resources

public IObjectAssemblyResource[] Resources { get; }

Property Value

IObjectAssemblyResource[]

StageType

public AssemblyPartStageType StageType { get; }

Property Value

AssemblyPartStageType

StagingIconAssetAddress

public string StagingIconAssetAddress { get; }

Property Value

string

StaticPressureAtm

public float StaticPressureAtm { get; }

Property Value

float

StaticPressureAtmASL

public float StaticPressureAtmASL { get; }

Property Value

float

SurfaceAttachmentPositionOffset

public Vector3 SurfaceAttachmentPositionOffset { get; }

Property Value

Vector3

SurfaceAttachmentRotationOffset

public Quaternion SurfaceAttachmentRotationOffset { get; }

Property Value

Quaternion

SymmetrySet

public SymmetrySet SymmetrySet { get; set; }

Property Value

SymmetrySet

TotalMass

public double TotalMass { get; }

Property Value

double

UniqueId

public IGGuid UniqueId { get; set; }

Property Value

IGGuid

UserRotationOffset

public Quaternion UserRotationOffset { get; set; }

Property Value

Quaternion

WetMass

public double WetMass { get; }

Property Value

double

WorldPosition

public Vector3 WorldPosition { get; set; }

Property Value

Vector3

WorldRotation

public Quaternion WorldRotation { get; set; }

Property Value

Quaternion

Methods

AddDynamicNode(IObjectAssemblyPart, IObjectAssemblyAvailablePartNode)

public IObjectAssemblyPartNode AddDynamicNode(IObjectAssemblyPart oabPart, IObjectAssemblyAvailablePartNode dynamicNode)

Parameters

oabPart IObjectAssemblyPart
dynamicNode IObjectAssemblyAvailablePartNode

Returns

IObjectAssemblyPartNode

ApplyColors(Color, Color)

public void ApplyColors(Color baseColor, Color detailColor)

Parameters

baseColor Color
detailColor Color

CalculateOffsetToGround()

public float CalculateOffsetToGround()

Returns

float

Equals(IDeltaVPart)

public bool Equals(IDeltaVPart other)

Parameters

other IDeltaVPart

Returns

bool

FinalizeLoad(ObjectAssemblyBuilderEvents, IObjectAssemblyAvailablePart)

public void FinalizeLoad(ObjectAssemblyBuilderEvents events, IObjectAssemblyAvailablePart part)

Parameters

events ObjectAssemblyBuilderEvents
part IObjectAssemblyAvailablePart

FindAttachNodeAttachedPart(string)

public IDeltaVPart FindAttachNodeAttachedPart(string nodeName)

Parameters

nodeName string

Returns

IDeltaVPart

FindModelTransforms(string)

public IEnumerable<Transform> FindModelTransforms(string transformName)

Parameters

transformName string

Returns

IEnumerable<Transform>

FindNodeAttachedPart(IGGuid)

public IObjectAssemblyPartNode FindNodeAttachedPart(IGGuid attachedPartID)

Parameters

attachedPartID IGGuid

Returns

IObjectAssemblyPartNode

FindNodeWithTag(string)

public IObjectAssemblyPartNode FindNodeWithTag(string attachNodeTag)

Parameters

attachNodeTag string

Returns

IObjectAssemblyPartNode

GetAnchorPart()

public IObjectAssemblyPart GetAnchorPart()

Returns

IObjectAssemblyPart

GetPartBounds(ref Bounds)

public void GetPartBounds(ref Bounds totalBounds)

Parameters

totalBounds Bounds

HasChildren()

public bool HasChildren()

Returns

bool

HasModule<T>()

public bool HasModule<T>() where T : PartComponentModule

Returns

bool

Type Parameters

T

HasParent()

public bool HasParent()

Returns

bool

Initialize(IObjectAssemblyAvailablePart, ObjectAssemblyAssets)

public void Initialize(IObjectAssemblyAvailablePart availablePart, ObjectAssemblyAssets prefabs)

Parameters

availablePart IObjectAssemblyAvailablePart
prefabs ObjectAssemblyAssets

NotifyNodesOfDisconnect(IObjectAssemblyPart)

public void NotifyNodesOfDisconnect(IObjectAssemblyPart disconnectedPart)

Parameters

disconnectedPart IObjectAssemblyPart

RemoveChildedPart(IObjectAssemblyPart)

public void RemoveChildedPart(IObjectAssemblyPart child)

Parameters

child IObjectAssemblyPart

RemoveDynamicNode(IObjectAssemblyPartNode)

public bool RemoveDynamicNode(IObjectAssemblyPartNode dynamicNode)

Parameters

dynamicNode IObjectAssemblyPartNode

Returns

bool

SetColliders(Collider[])

public void SetColliders(Collider[] colliders)

Parameters

colliders Collider[]

SetColors(Color, Color)

public void SetColors(Color baseColor, Color detailColor)

Parameters

baseColor Color
detailColor Color

SetNodeLocalPosition(IObjectAssemblyPartNode, Vector3)

public void SetNodeLocalPosition(IObjectAssemblyPartNode node, Vector3 newLocalPosition)

Parameters

node IObjectAssemblyPartNode
newLocalPosition Vector3

SetNodeLocalScale(IObjectAssemblyPartNode, float)

public void SetNodeLocalScale(IObjectAssemblyPartNode node, float newScaleFactor)

Parameters

node IObjectAssemblyPartNode
newScaleFactor float

SetOriginalPart(IObjectAssemblyPart)

public void SetOriginalPart(IObjectAssemblyPart parent)

Parameters

parent IObjectAssemblyPart

SetParentPart(IObjectAssemblyPart)

public void SetParentPart(IObjectAssemblyPart parent)

Parameters

parent IObjectAssemblyPart

ShowNodes(bool, bool, bool)

public void ShowNodes(bool show, bool onlyShowAvailable = true, bool showSurfaceNodes = true)

Parameters

show bool
onlyShowAvailable bool
showSurfaceNodes bool

TryGetModule(Type, out PartBehaviourModule)

public bool TryGetModule(Type type, out PartBehaviourModule module)

Parameters

type Type
module PartBehaviourModule

Returns

bool

TryGetModuleData<T>(out T)

public bool TryGetModuleData<T>(out T moduleData) where T : ModuleData

Parameters

moduleData T

Returns

bool

Type Parameters

T

TryGetModuleData<T, U>(out U)

public bool TryGetModuleData<T, U>(out U moduleData) where T : PartComponentModule where U : ModuleData

Parameters

moduleData U

Returns

bool

Type Parameters

T
U

TryGetModuleOfInstanceType(Type, out PartBehaviourModule)

public bool TryGetModuleOfInstanceType(Type type, out PartBehaviourModule module)

Parameters

type Type
module PartBehaviourModule

Returns

bool

TryGetModuleOfInstanceType<T>(out T)

public bool TryGetModuleOfInstanceType<T>(out T module) where T : PartBehaviourModule

Parameters

module T

Returns

bool

Type Parameters

T

TryGetModule<T>(out T)

public bool TryGetModule<T>(out T module) where T : PartBehaviourModule

Parameters

module T

Returns

bool

Type Parameters

T