You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
422 B
13 lines
422 B
|
3 months ago
|
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);
|
||
|
|
}
|