Table of Contents

Class ObjectComponent

Namespace
KSP.Sim.impl
Assembly
Assembly-CSharp.dll
public abstract class ObjectComponent : IGuidIdentity
Inheritance
ObjectComponent
Implements
Derived
Inherited Members
Extension Methods

Constructors

ObjectComponent()

protected ObjectComponent()

Fields

_isEnabled

protected bool _isEnabled

Field Value

bool

initialDefinitionData

protected object initialDefinitionData

Field Value

object

Properties

DefinitionType

[TypeConverterIgnore]
public abstract Type DefinitionType { get; }

Property Value

Type

DisplayName

[TypeConverterIgnore]
public string DisplayName { get; }

Property Value

string

Game

[TypeConverterIgnore]
public GameInstance Game { get; }

Property Value

GameInstance

GlobalId

[TypeConverterIgnore]
public IGGuid GlobalId { get; }

Property Value

IGGuid

Guid

[TypeConverterIgnore]
public string Guid { get; }

Property Value

string

IsDestroyed

[TypeConverterIgnore]
public bool IsDestroyed { get; }

Property Value

bool

IsDestroyedOrBeingDestroyed

[TypeConverterIgnore]
public bool IsDestroyedOrBeingDestroyed { get; }

Property Value

bool

IsEnabled

[TypeConverterIgnore]
public bool IsEnabled { get; set; }

Property Value

bool

IsLocallyAuthorized

[TypeConverterIgnore]
public bool IsLocallyAuthorized { get; }

Property Value

bool

IsLocallyOwned

[TypeConverterIgnore]
public bool IsLocallyOwned { get; }

Property Value

bool

IsValidInSim

[TypeConverterIgnore]
public virtual bool IsValidInSim { get; }

Property Value

bool

Name

[TypeConverterIgnore]
public string Name { get; }

Property Value

string

SimulationObject

[TypeConverterIgnore]
public SimulationObjectModel SimulationObject { get; }

Property Value

SimulationObjectModel

StateType

[TypeConverterIgnore]
public abstract Type StateType { get; }

Property Value

Type

Type

[TypeConverterIgnore]
public abstract Type Type { get; }

Property Value

Type

ViewObjectComponentType

[TypeConverterIgnore]
public virtual Type ViewObjectComponentType { get; }

Property Value

Type

transform

[TypeConverterIgnore]
public ITransformModel transform { get; }

Property Value

ITransformModel

Methods

GetDefinition()

public abstract object GetDefinition()

Returns

object

GetState()

public abstract object GetState()

Returns

object

Is(IGuidIdentity)

public bool Is(IGuidIdentity other)

Parameters

other IGuidIdentity

Returns

bool

OnAdded(SimulationObjectModel, double)

public virtual void OnAdded(SimulationObjectModel simulationObject, double universalTime)

Parameters

simulationObject SimulationObjectModel
universalTime double

OnFixedUpdate(double, double)

public virtual void OnFixedUpdate(double universalTime, double deltaUniversalTime)

Parameters

universalTime double
deltaUniversalTime double

OnLateUpdate(double)

public virtual void OnLateUpdate(double universalTime)

Parameters

universalTime double

OnRemoved(SimulationObjectModel, double)

public virtual void OnRemoved(SimulationObjectModel simulationObject, double universalTime)

Parameters

simulationObject SimulationObjectModel
universalTime double

OnStart(double)

public virtual void OnStart(double universalTime)

Parameters

universalTime double

OnUpdate(double, double)

public virtual void OnUpdate(double universalTime, double deltaUniversalTime)

Parameters

universalTime double
deltaUniversalTime double

SetDefinition(object)

public virtual void SetDefinition(object definitionData)

Parameters

definitionData object

SetState(object, ISimulationModelMap)

public abstract object SetState(object stateData, ISimulationModelMap simulationModelMap)

Parameters

stateData object
simulationModelMap ISimulationModelMap

Returns

object

ValidateState(object, ISimulationModelMap)

public abstract bool ValidateState(object stateData, ISimulationModelMap simulationModelMap)

Parameters

stateData object
simulationModelMap ISimulationModelMap

Returns

bool