From 19297f22520670dfcd60e391b32438f66dfb6257 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 14 Jun 2026 08:13:47 +0100 Subject: [PATCH] Remove dead behavior data query API --- .voidbot/state/aetheria.cc | Bin 76734 -> 76385 bytes Assets/Scripts/ServerShared/Entity.cs | 44 -------------------------- docs/aetheria-perfect-machine-map.md | 3 ++ 3 files changed, 3 insertions(+), 44 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index e296a1d9467dd6cc0a1b4352c6ebb09301a018dd..436232b86e4c2f2441195e48d79449a0b4ad499c 100644 GIT binary patch delta 989 zcmZ8g&ubGw6lU5SS`oCgrCOnV1%(Eh&9<>ktzuDH#FIsPDtZ`qUv@_)GwIB1+UTK( zC-Ec^_8;&U1wjPq&Emnkf>3%9di5s$1I});N!r`+&71dq-+SMDJ;)vX%6)p*cWQQS z$t^qc<;9IxWVHFc?`4K8UQQ9&|D=PoY6fzXed8CO=W~1c9Qiz&FHtlhDn<)Fax_># zVVG$Y9%4xAOsaxU4K2_bi-$(Z{hig-^csW&E=7O}aJwcoYRDeI%K9Dfq^Pg}OsHfO zgm4SZ&33;P+s=9GamuQP2kRk1BqEJIwE8+HDzB|ypU%ULwcD^oH7MMv$~yWpKofG< zVkQJ_C`U_Jty<-_k+!H87L8(ol~<(OtgEfC8KG)Gh`feMJ8jag^yHdZFG6m$eF0~6 zgiJilGGY0IhkC{qna)Mxs>itV-k{J-io@T{pO44SSdol#s44jfJ)`5Z!(?nn0~1Cb zZ&8s7yhtf)rK`#gQyUd|Mk-57g>N7Ftj_$1@@`c}S({9up-e!kEV4`EU>Y?$pKMPP zP@zf7#IM2{rykmUQOm2CA7FFy%gBQlD>Ai7eIEqcnY6OOv5p+FVWp2OTcpG>GY+gN ztk{I4Bg|+M)2J*p#;1qLg`r|gMFVt{qB`CjB*XFDbL8ssaw`;_i1mb{*mJh~jZBir z9xSmP|Cu1uq!h~$0?SvHO7lyu>$tAF@y5_Vzy6RV|6`^t&H66KfO?IBZ{%*iaw<&FOeP+B?w delta 1297 zcmah}&r1|h9A|V1?Up1ZrhW^8tld@DUzi9Tv0Ux7sMcILY~FWeDITM(so=SiP>M1Yp6Rq6*2pvx2a+l{t^yTxVRRiOD4Uc@f;p6zfp7;Z zyrR%a73WYAAX-aWtY}p56eU7Tz{$V08KK^xRakHl(DQW_=3-L!q^KpN2Idnu5>bQ* z%>a8uu9y#1P!=4sY48-nKg})6E?%Otb#;F?QASTq9;~OMM(+|f?vCRwLILRs|b`UKXx-M+msW^ zp@=py2EpR(I^iO^WR(h;@(Yxvj6qanxOn+3ja(Vs2fL9+$L=KNH0)5i7G1Li*9J!c zOHncXQ#1zR0SujI5|4t3bCT{@W4e5T2yQ| zLiyVej%y}cg+7rHNYjYLI=_LYltg$OU^0+k6HS;XH>t%V=Tc>)RrBu&w_PFUu%upX zyfG#oOa@0w7Xp6R5&Yi0^k`|88{e9Uu^}nzlOZ4_GgQVKGeD7q|E)|uhPu&!>Nv3v zc@H%S?vHg&O-9e3HX84_Oc!`@!&a(m;M8V|m;cC{scBf(MYx$s4=^`-GdjTVwe>s09W cS)y@mbTs_YXNAq*iJfO)?YB2>jg2h-0hV*x`~Uy| 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