Class ModelLookup
- Namespace
- KSP.Sim.impl
- Assembly
- Assembly-CSharp.dll
- Inheritance
-
ModelLookup
- Inherited Members
-
- Extension Methods
-
Constructors
ModelLookup()
Fields
MAX_PLAYER_COUNT
public const byte MAX_PLAYER_COUNT = 1
Field Value
- byte
gEmptySimulationObjectModelList
public static readonly List<SimulationObjectModel> gEmptySimulationObjectModelList
Field Value
- List<SimulationObjectModel>
Properties
AllModels
public List<SimulationObjectModel> AllModels { get; }
Property Value
- List<SimulationObjectModel>
GlobalIdDict
public Dictionary<IGGuid, SimulationObjectModel> GlobalIdDict { get; }
Property Value
- Dictionary<IGGuid, SimulationObjectModel>
NameKeyDict
public Dictionary<string, SimulationObjectModel> NameKeyDict { get; }
Property Value
- Dictionary<string, SimulationObjectModel>
NumModels
public int NumModels { get; }
Property Value
- int
ObjectIdDict
public Dictionary<ulong, SimulationObjectModel> ObjectIdDict { get; }
Property Value
- Dictionary<ulong, SimulationObjectModel>
PlayerEntryArray
public ModelLookup.PlayerEntry[] PlayerEntryArray { get; }
Property Value
- PlayerEntry[]
Methods
AddSimulationObject(SimulationObjectModel)
public bool AddSimulationObject(SimulationObjectModel model)
Parameters
model SimulationObjectModel
Returns
- bool
DoesGlobalIdExist(IGGuid)
public bool DoesGlobalIdExist(IGGuid globalId)
Parameters
globalId IGGuid
Returns
- bool
DoesGlobalNameKeyExist(string)
public bool DoesGlobalNameKeyExist(string globalNameKey)
Parameters
globalNameKey string
Returns
- bool
DoesObjectIdExist(ulong)
public bool DoesObjectIdExist(ulong objectId)
Parameters
objectId ulong
Returns
- bool
Empty()
~ModelLookup()
FindPlayerEntry(byte)
public ModelLookup.PlayerEntry FindPlayerEntry(byte playerId)
Parameters
playerId byte
Returns
- ModelLookup.PlayerEntry
FindSimObject(IGGuid)
public SimulationObjectModel FindSimObject(IGGuid globalId)
Parameters
globalId IGGuid
Returns
- SimulationObjectModel
FindSimObjectByNameKey(string)
public SimulationObjectModel FindSimObjectByNameKey(string globalNameKey)
Parameters
globalNameKey string
Returns
- SimulationObjectModel
FindSimObjectByObjectId(ulong)
public SimulationObjectModel FindSimObjectByObjectId(ulong objectId)
Parameters
objectId ulong
Returns
- SimulationObjectModel
FindSimObjectByString(string)
public SimulationObjectModel FindSimObjectByString(string simObjectId)
Parameters
simObjectId string
Returns
- SimulationObjectModel
GetAllSimObjectsForPlayerId(byte)
public IEnumerable<SimulationObjectModel> GetAllSimObjectsForPlayerId(byte playerId)
Parameters
playerId byte
Returns
- IEnumerable<SimulationObjectModel>
Init()
RemoveSimulationObject(SimulationObjectModel)
public bool RemoveSimulationObject(SimulationObjectModel model)
Parameters
model SimulationObjectModel
Returns
- bool
Uninit()