Subtract dead IInteractiveBehavior and Entity.GetExposed

This commit is contained in:
soul 2026-12-03 21:35:04 +01:00
commit 359422a86c
2 changed files with 0 additions and 16 deletions

View file

@ -109,11 +109,6 @@ public interface IInitializableBehavior
void Initialize();
}
public interface IInteractiveBehavior
{
bool Exposed { get; }
}
public interface IAlwaysUpdatedBehavior
{
void Update(float delta);

View file

@ -2790,15 +2790,4 @@ public class BehaviorGroup
return null;
}
public T GetExposed<T>() where T : Behavior, IInteractiveBehavior
{
foreach (var b in Behaviors)
{
if (!(b is T s) || !((IInteractiveBehavior)b).Exposed) continue;
return s;
}
return null;
}
}