Class ObjectIdManager
- Namespace
- KSP.Sim.impl
- Assembly
- Assembly-CSharp.dll
public class ObjectIdManager
- Inheritance
-
ObjectIdManager
- Inherited Members
-
- Extension Methods
-
Constructors
ObjectIdManager(int, int, int, int, int)
public ObjectIdManager(int globalArraySizeInitial, int globalArraySizeGrow, int playerArraySizeInitial, int playerArraySizeGrow, int maxPlayers)
Parameters
globalArraySizeInitial int
globalArraySizeGrow int
playerArraySizeInitial int
playerArraySizeGrow int
maxPlayers int
Fields
DEFAULT_GLOBAL_ARRAY_SIZE_GROW
public const int DEFAULT_GLOBAL_ARRAY_SIZE_GROW = 128
Field Value
- int
DEFAULT_GLOBAL_ARRAY_SIZE_INITIAL
public const int DEFAULT_GLOBAL_ARRAY_SIZE_INITIAL = 256
Field Value
- int
DEFAULT_MAX_PLAYERS
public const int DEFAULT_MAX_PLAYERS = 0
Field Value
- int
DEFAULT_PLAYER_ARRAY_SIZE_GROW
public const int DEFAULT_PLAYER_ARRAY_SIZE_GROW = 64
Field Value
- int
DEFAULT_PLAYER_ARRAY_SIZE_INITIAL
public const int DEFAULT_PLAYER_ARRAY_SIZE_INITIAL = 64
Field Value
- int
Properties
GlobalArraySizeGrow
public int GlobalArraySizeGrow { get; }
Property Value
- int
GlobalArraySizeInitial
public int GlobalArraySizeInitial { get; }
Property Value
- int
PlayerArraySizeGrow
public int PlayerArraySizeGrow { get; }
Property Value
- int
PlayerArraySizeInitial
public int PlayerArraySizeInitial { get; }
Property Value
- int
Methods
~ObjectIdManager()
protected ~ObjectIdManager()
FindObjectIdCollectionByPlayerId(byte)
public ObjectIdCollection FindObjectIdCollectionByPlayerId(byte playerId)
Parameters
playerId byte
Returns
- ObjectIdCollection
FindObjectIdEntryByObjectId(ulong)
public ObjectIdEntry FindObjectIdEntryByObjectId(ulong objectId)
Parameters
objectId ulong
Returns
- ObjectIdEntry
GenerateNewObjectId(byte)
public ulong GenerateNewObjectId(byte playerId)
Parameters
playerId byte
Returns
- ulong
Init(int, int, int, int, int)
public void Init(int globalArraySizeInitial, int globalArraySizeGrow, int playerArraySizeInitial, int playerArraySizeGrow, int maxPlayers)
Parameters
globalArraySizeInitial int
globalArraySizeGrow int
playerArraySizeInitial int
playerArraySizeGrow int
maxPlayers int
MarkAsAllocated(ulong)
public void MarkAsAllocated(ulong objectId)
Parameters
objectId ulong
MarkAsAllocated(ulong, bool)
public void MarkAsAllocated(ulong objectId, bool allocated)
Parameters
objectId ulong
allocated bool
MarkAsUnallocated(ulong)
public void MarkAsUnallocated(ulong objectId)
Parameters
objectId ulong
ReturnObjectId(ulong)
public void ReturnObjectId(ulong objectId)
Parameters
objectId ulong
SetGlobalArraySizeGrow(int)
public void SetGlobalArraySizeGrow(int globalArraySizeGrow)
Parameters
globalArraySizeGrow int
SetGlobalArraySizeInitial(int)
public void SetGlobalArraySizeInitial(int globalArraySizeInitial)
Parameters
globalArraySizeInitial int
SetPlayerArraySizeGrow(int)
public void SetPlayerArraySizeGrow(int playerArraySizeGrow)
Parameters
playerArraySizeGrow int
SetPlayerArraySizeInitial(int)
public void SetPlayerArraySizeInitial(int playerArraySizeInitial)
Parameters
playerArraySizeInitial int
SetupCollection(int)
public void SetupCollection(int maxPlayers)
Parameters
maxPlayers int
TeardownCollection()
public void TeardownCollection()
Uninit()