Table of Contents

Class ObjectIdUtil

Namespace
KSP.Sim.impl
Assembly
Assembly-CSharp.dll
public static class ObjectIdUtil
Inheritance
ObjectIdUtil
Inherited Members

Fields

OBJECT_ID_NONE

public const ulong OBJECT_ID_NONE = 0

Field Value

ulong

PART_ID_NONE

public const ulong PART_ID_NONE = 0

Field Value

ulong

Methods

ConvertObjectIdToPlayerIdAndPartId(ulong, out byte, out ulong)

public static void ConvertObjectIdToPlayerIdAndPartId(ulong objectId, out byte playerIdOut, out ulong partIdOut)

Parameters

objectId ulong
playerIdOut byte
partIdOut ulong

ConvertPlayerIdAndPartIdToObjectId(byte, ulong, out ulong)

public static bool ConvertPlayerIdAndPartIdToObjectId(byte playerId, ulong partId, out ulong objectIdOut)

Parameters

playerId byte
partId ulong
objectIdOut ulong

Returns

bool

GetDebugObjectIdString(ulong, bool)

public static string GetDebugObjectIdString(ulong objectId, bool abbrev)

Parameters

objectId ulong
abbrev bool

Returns

string

GetObjectId(byte, ulong)

public static ulong GetObjectId(byte playerId, ulong partId)

Parameters

playerId byte
partId ulong

Returns

ulong

GetPartId(ulong)

public static ulong GetPartId(ulong objectId)

Parameters

objectId ulong

Returns

ulong

GetPlayerId(ulong)

public static byte GetPlayerId(ulong objectId)

Parameters

objectId ulong

Returns

byte

GetPlayerIdAndPartId(ulong)

public static (byte, ulong) GetPlayerIdAndPartId(ulong objectId)

Parameters

objectId ulong

Returns

(byte, ulong)