diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index e296a1d94..436232b86 100644 Binary files a/.voidbot/state/aetheria.cc and b/.voidbot/state/aetheria.cc differ diff --git a/Assets/Scripts/ServerShared/Entity.cs b/Assets/Scripts/ServerShared/Entity.cs index 99c47773d..6aa1dd5b6 100644 --- a/Assets/Scripts/ServerShared/Entity.cs +++ b/Assets/Scripts/ServerShared/Entity.cs @@ -970,50 +970,6 @@ public abstract class Entity yield return b; } - public IEnumerable GetBehaviorData() where T : BehaviorData - { - foreach (var equippedItem in Equipment) - foreach (var behavior in equippedItem.Behaviors) - if (behavior.Data is T b) - yield return b; - } - - // public IEnumerable<(T t, Switch s)> GetSwitch() where T : class, IBehavior - // { - // foreach (var equippedItem in Equipment) - // foreach (var group in equippedItem.BehaviorGroups.Values) - // foreach(var behavior in group.Behaviors) - // if (behavior is T t) - // { - // var s = group.GetExposed(); - // if (s != null) yield return (t, s); - // } - // } - // - // public IEnumerable<(T behavior, Trigger trigger)> GetTrigger() where T : class, IBehavior - // { - // foreach (var equippedItem in Equipment) - // foreach (var group in equippedItem.BehaviorGroups.Values) - // foreach(var behavior in group.Behaviors) - // if (behavior is T t) - // { - // var s = group.GetExposed(); - // if (s != null) yield return (t, s); - // } - // } - // - // public IEnumerable<(T behavior, Axis axis)> GetAxis() where T : class, IBehavior - // { - // foreach (var equippedItem in Equipment) - // foreach (var group in equippedItem.BehaviorGroups.Values) - // foreach(var behavior in group.Behaviors) - // if (behavior is T t) - // { - // var s = group.GetExposed(); - // if (s != null) yield return (t, s); - // } - // } - public virtual void Update(float delta) { TargetRange = Target.Value == null ? -1 : length(Position - Target.Value.Position); diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index e4bb0f679..76ce87dac 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -811,6 +811,9 @@ First Aetheria surfaces to publish: - Done: delete `Entity` consumable activation overloads that accepted `ConsumableItemData`; active lookup uses item ids and activation commands accept typed runtime catalog rows only. + - Done: delete dead `Entity.GetBehaviorData()` and stale commented + switch/trigger/axis behavior-query helpers; entity-level behavior queries + expose live behavior instances, not DTO config. - Done: import action-bar icon resource paths into typed item definitions and move `ActionBarSlot` custom gear icon lookup onto typed runtime item rows. - Done: move `Ship` drag, combat/turret predicted shot height, and thruster