Table of Contents

Class ObjectComponentDefRegistry

Namespace
KSP.Sim
Assembly
Assembly-CSharp.dll
public class ObjectComponentDefRegistry
Inheritance
ObjectComponentDefRegistry
Inherited Members
Extension Methods

Constructors

ObjectComponentDefRegistry()

public ObjectComponentDefRegistry()

Fields

OBJECT_COMPONENT_DEF_LOOKUP_ID_NONE

public const int OBJECT_COMPONENT_DEF_LOOKUP_ID_NONE = 0

Field Value

int

Properties

Instance

public static ObjectComponentDefRegistry Instance { get; }

Property Value

ObjectComponentDefRegistry

NumRegisteredObjectComponents

public int NumRegisteredObjectComponents { get; }

Property Value

int

Methods

Empty()

public void Empty()

~ObjectComponentDefRegistry()

protected ~ObjectComponentDefRegistry()

FindObjectComponentByIndex(int)

public ObjectComponent FindObjectComponentByIndex(int index)

Parameters

index int

Returns

ObjectComponent

FindObjectComponentBySystemType(Type)

public ObjectComponent FindObjectComponentBySystemType(Type systemType)

Parameters

systemType Type

Returns

ObjectComponent

FindObjectComponentBySystemTypeString(string)

public ObjectComponent FindObjectComponentBySystemTypeString(string systemTypeString)

Parameters

systemTypeString string

Returns

ObjectComponent

FindObjectComponentDefByObjectComponentDefLookupId(int)

public ObjectComponent FindObjectComponentDefByObjectComponentDefLookupId(int objectComponentDefLookupId)

Parameters

objectComponentDefLookupId int

Returns

ObjectComponent

GetFormatString(bool)

public string GetFormatString(bool multiline)

Parameters

multiline bool

Returns

string

GetObjectComponentDefLookupId(ObjectComponent)

public int GetObjectComponentDefLookupId(ObjectComponent objectComponent)

Parameters

objectComponent ObjectComponent

Returns

int

Init()

public void Init()

LoopThroughAllRegisteredObjectComponents(LoopThroughObjectComponentsCallback)

public void LoopThroughAllRegisteredObjectComponents(ObjectComponentDefRegistry.LoopThroughObjectComponentsCallback callback)

Parameters

callback ObjectComponentDefRegistry.LoopThroughObjectComponentsCallback

RegisterObjectComponent(ObjectComponent)

public void RegisterObjectComponent(ObjectComponent objectComponent)

Parameters

objectComponent ObjectComponent

RegisterObjectComponents()

public void RegisterObjectComponents()

Uninit()

public void Uninit()

UnregisterObjectComponent(ObjectComponent)

public void UnregisterObjectComponent(ObjectComponent objectComponent)

Parameters

objectComponent ObjectComponent

UnregisterObjectComponent(string)

public void UnregisterObjectComponent(string systemTypeString)

Parameters

systemTypeString string

UnregisterObjectComponent(Type)

public void UnregisterObjectComponent(Type systemType)

Parameters

systemType Type

UnregisterObjectComponents()

public void UnregisterObjectComponents()