Managed the freeing of entityplacers. Also cleaned up EntityManager

This commit is contained in:
Katharina Ziolkowski
2026-02-03 15:36:59 +01:00
parent bcbc074c86
commit b65a3bbd6d
8 changed files with 92 additions and 39 deletions
@@ -0,0 +1,13 @@
using System.Collections.Generic;
namespace Babushka.scripts.CSharp.GameEntity.Entities;
public class LoadedScenesEntity : Entity
{
private HashSet<string> _loadedScenes = new();
public override string EntityType => "LoadedScenesEntity";
public void AddScene(string sceneName) => _loadedScenes.Add(sceneName);
public bool WasSceneLoaded(string sceneName) => _loadedScenes.Contains(sceneName);
}