refactor: universe and objects now use fast list

This commit is contained in:
2025-10-13 12:40:43 +03:00
parent a2e704916e
commit 8d31372c24
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ public class Universe : BaseEntity, IUniverse
private readonly Event<IInitializable>.EventHandler delegateOnUniverseObjectFinalize = null!;
private readonly Event<IUniverseObject, IUniverseObject.ExitedUniverseArguments>.EventHandler delegateOnUniverseObjectExitedUniverse = null!;
private readonly List<IUniverseObject> _universeObjects = new(Constants.UNIVERSE_OBJECTS_SIZE_INITIAL);
private readonly FastList<IUniverseObject> _universeObjects = new(Constants.UNIVERSE_OBJECTS_SIZE_INITIAL);
private float _timeScale = 1f;
public Universe()