This commit is contained in:
2025-07-30 08:25:50 +02:00
parent 159e9adcd7
commit 363b20a067
2 changed files with 3 additions and 20 deletions

View File

@@ -24,7 +24,8 @@ namespace RebootKit.Engine.Simulation {
readonly List<Actor> m_InSceneActors = new List<Actor>();
readonly List<Actor> m_SpawnedActors = new List<Actor>();
ushort m_ActorIDCounter = 0;
// @NOTE: 0 is reserved for no actor so we should start assigning IDs from 1.
ushort m_ActorIDCounter;
public ushort InSceneActorsCount { get { return (ushort) m_InSceneActors.Count; } }
public ushort SpawnedActorsCount { get { return (ushort) m_SpawnedActors.Count; } }