Table of Contents

Class ObjectIdCollection

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

Constructors

ObjectIdCollection(ObjectIdManager, byte, int, int)

public ObjectIdCollection(ObjectIdManager objectIdManager, byte playerId, int arraySizeInitial, int arraySizeGrow)

Parameters

objectIdManager ObjectIdManager
playerId byte
arraySizeInitial int
arraySizeGrow int

Fields

DEFAULT_ARRAY_SIZE_GROW

public const int DEFAULT_ARRAY_SIZE_GROW = 1

Field Value

int

DEFAULT_ARRAY_SIZE_INITIALIZE

public const int DEFAULT_ARRAY_SIZE_INITIALIZE = 1

Field Value

int

DEFAULT_OBJECT_ID_MANAGER

public const ObjectIdManager DEFAULT_OBJECT_ID_MANAGER = null

Field Value

ObjectIdManager

DEFAULT_PLAYER_ID

public const byte DEFAULT_PLAYER_ID = 0

Field Value

byte

Properties

ArraySizeGrow

public int ArraySizeGrow { get; }

Property Value

int

ArraySizeInitial

public int ArraySizeInitial { get; }

Property Value

int

ObjectIdManager

public ObjectIdManager ObjectIdManager { get; }

Property Value

ObjectIdManager

PlayerId

public byte PlayerId { get; }

Property Value

byte

Methods

FindNextAvailableIndex()

public ulong FindNextAvailableIndex()

Returns

ulong

FindObjectIdEntryByPartId(ulong)

public ObjectIdEntry FindObjectIdEntryByPartId(ulong partId)

Parameters

partId ulong

Returns

ObjectIdEntry

FindObjectIdEntryByPartIndex(ulong)

public ObjectIdEntry FindObjectIdEntryByPartIndex(ulong partIndex)

Parameters

partIndex ulong

Returns

ObjectIdEntry

GenerateNewObjectId()

public ulong GenerateNewObjectId()

Returns

ulong

GrowArray()

public void GrowArray()

Init(ObjectIdManager, byte, int, int)

public void Init(ObjectIdManager objectIdManager, byte playerId, int arraySizeInitial, int arraySizeGrow)

Parameters

objectIdManager ObjectIdManager
playerId byte
arraySizeInitial int
arraySizeGrow int

SetupArray(int)

public void SetupArray(int numItems)

Parameters

numItems int

TeardownArray()

public void TeardownArray()

Uninit()

public void Uninit()