Subtract dead IInteractiveBehavior and Entity.GetExposed
This commit is contained in:
parent
38ad707075
commit
359422a86c
2 changed files with 0 additions and 16 deletions
|
|
@ -109,11 +109,6 @@ public interface IInitializableBehavior
|
|||
void Initialize();
|
||||
}
|
||||
|
||||
public interface IInteractiveBehavior
|
||||
{
|
||||
bool Exposed { get; }
|
||||
}
|
||||
|
||||
public interface IAlwaysUpdatedBehavior
|
||||
{
|
||||
void Update(float delta);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue