From 359422a86c7485c90323d0ac2cf3924035e97388 Mon Sep 17 00:00:00 2001 From: soul Date: Thu, 3 Dec 2026 21:35:04 +0100 Subject: [PATCH] Subtract dead IInteractiveBehavior and Entity.GetExposed --- Assets/Scripts/ServerShared/Behaviors/Behaviors.cs | 5 ----- Assets/Scripts/ServerShared/Entity.cs | 11 ----------- 2 files changed, 16 deletions(-) diff --git a/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs b/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs index 61c5a2dcd..892da6df3 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs @@ -109,11 +109,6 @@ public interface IInitializableBehavior void Initialize(); } -public interface IInteractiveBehavior -{ - bool Exposed { get; } -} - public interface IAlwaysUpdatedBehavior { void Update(float delta); diff --git a/Assets/Scripts/ServerShared/Entity.cs b/Assets/Scripts/ServerShared/Entity.cs index 4faaa67ba..33ec350bc 100644 --- a/Assets/Scripts/ServerShared/Entity.cs +++ b/Assets/Scripts/ServerShared/Entity.cs @@ -2790,15 +2790,4 @@ public class BehaviorGroup return null; } - - public T GetExposed() where T : Behavior, IInteractiveBehavior - { - foreach (var b in Behaviors) - { - if (!(b is T s) || !((IInteractiveBehavior)b).Exposed) continue; - return s; - } - - return null; - } } \ No newline at end of file