2025-12-18 14:27:27 +01:00
|
|
|
using PositionalEntity = Babushka.scripts.CSharp.GameEntity.Entities.PositionalEntity;
|
|
|
|
|
|
|
|
|
|
namespace Babushka.scripts.CSharp.GameEntity.Management;
|
|
|
|
|
|
|
|
|
|
public static class EntityManagerUtil
|
|
|
|
|
{
|
2026-02-03 13:55:13 +01:00
|
|
|
public static void AddIfNeeded(this EntitySceneContainer? self, PositionalEntity entity)
|
2025-12-18 14:27:27 +01:00
|
|
|
{
|
|
|
|
|
if(self == null) return;
|
|
|
|
|
if(self.sceneName != entity.sceneName) return;
|
|
|
|
|
|
|
|
|
|
self.AddEntity(entity);
|
|
|
|
|
}
|
|
|
|
|
}
|