From 444acc9f30b9cbe3a941a0d9a26a5c2401959c88 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 14 Jun 2026 17:50:17 +0100 Subject: [PATCH] Move thruster visuals behind runtime owner --- .voidbot/state/aetheria.cc | Bin 85362 -> 85139 bytes Assets/Scripts/Gameplay/ShipInstance.cs | 3 +-- .../ServerShared/Behaviors/Thruster.cs | 3 +++ docs/aetheria-perfect-machine-map.md | 3 +++ 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index a94aeba66649c14eddbf2b29919a5e7dfd72fd96..29ba6444ac7d4a77b8401fed3f91a4e8b313ead1 100644 GIT binary patch delta 1151 zcmZux%}*0S6wmS@aPVM=5aYoYV@ycc+E%{7L$StqAR;s#NIVR)({^AxvzeJ~X*3~* zs~%*ds~q&81~4XaFyX2P&t7ff9|8UazHN6GQIj6Jvv1z}eeL_T(;K|%J=pE)pPtF* zGGpV{!{d2tDEQX(q%S@RkLIo6Kz2WjOD6K2lK!4cU32%hMtTlMdaS9*3pv6}l_^ea zQ&qk;Oxbm=ed2~2v)0>4ICm!h?E+vg5*7L{CM)Nq$A5J4(Th39Tqg90ZK#L1K%g+g0^qKY7;NT?KL zUKs@<9MBT!EgNDMq{GXcDL^j9#(%B@gi@w8o^aQV1c6mnC3P+pbXq{MbT@c>>-^@^ zqD0XQ5XS+*8gNRLSlo^{$WZ!~>S?C4z&1RI{RL49wNGR}5m8Bxp^j(?4mVAYIY_7J zN|X;lUPhEsY2Y12Gat~6s#Hs?thcw`qVBC+kZW8Getv~gDQz0LEE_^2mOsS#+a@YK zj?>CY)_@xwG1o@$XE&EhNFudoRdJ`nfL0k@ceys0Oez&-Gongm z&2upy&IzE{BH|mAjhiM=-(>bFT83o>^Esc*PuSTBJ2zI!W@p;Jm3`lH($^3EegDpo zihi+|e1f}Zpq7H{Q{Od|Ahd%7t{wZmmk9L97YM>uOgQ-Uib{B`U=0oa2SxC``(nHU xCdb-4Abei1zQlWCGC1yz*2I~xId6G!-Bf#5yiA_P51-w%ehdtBHp_H&2o9@6w<%yu! zE)(o?W)sgNj;cKwv}US958@coF;v71PZNO(oX-Y6V!Vt3NhA^hQ?y8s&VY(UVHYc$ zdG8c3E$(cN!Lh2`WKv<~5aeJd53gwauR0vAKa%Hr#i~&?iKZ$@Hln53NTyu1-mm$=9m zdb`{4j8Z#9n)}Kv*paA(`fYm9f>?HkQ0a!u#dnOsgzNo7>MR` z4={~$mqLAkOyXE$AY#(Q*EPWK=~zp3VU$BF6x63o3GN0Uaf!+R7ZQYt;=MNC!q!69-m>SoeRo0l0}KG0GG1XRV3vX~U8cCyV%r4e=@gXBVHR)BV%iwWY% z#c=r6#c;fQbka1?k?&?HbJvYyY#b=K3g%dbE)}t;>|{-I9PFz=fKY$;9N|5)B`yoU zY^E1+bNKC2YjrKjYuYY$)80PZgNELo<#rvHc-kEKvFDJFRX+29l)wt$K`+Q z+o^0g_x<=oyNLbW8WW@3fyrPn0{c|34b^?qW&8w26$&Q5$V-$>!^n8i02*H|ZndVm z?q~Z3a{aX*P1gCw`192X>r8iS89TB$S=GgCqwlJb!2GUI<^)q%!Ne_ukAJ6+^$c|B zeb(C_Zr7jH>n_(Bue-0Q_$b#|TOYB~ur-YDrmQxEiC diff --git a/Assets/Scripts/Gameplay/ShipInstance.cs b/Assets/Scripts/Gameplay/ShipInstance.cs index 34e408dfd..56c42425c 100644 --- a/Assets/Scripts/Gameplay/ShipInstance.cs +++ b/Assets/Scripts/Gameplay/ShipInstance.cs @@ -63,8 +63,7 @@ public class ShipInstance : EntityInstance } _thrusters = ship.GetBehaviors().Select(thruster => { - var effectData = (ThrusterData) thruster.Data; - var particles = Instantiate(UnityHelpers.LoadAsset(effectData.ParticlesPrefab), transform, false); + var particles = Instantiate(UnityHelpers.LoadAsset(thruster.ParticlesPrefab), transform, false); var particlesShape = particles.shape; var thrusterHardpoint = ThrusterHardpoints .FirstOrDefault(t => t.name == ship.Hardpoints[thruster.Item.Position.x, thruster.Item.Position.y].Transform); diff --git a/Assets/Scripts/ServerShared/Behaviors/Thruster.cs b/Assets/Scripts/ServerShared/Behaviors/Thruster.cs index 7e5da7f8e..06c009b3a 100644 --- a/Assets/Scripts/ServerShared/Behaviors/Thruster.cs +++ b/Assets/Scripts/ServerShared/Behaviors/Thruster.cs @@ -38,6 +38,7 @@ public class Thruster : Behavior, IAnalogBehavior { public float Thrust { get; private set; } public float Torque { get; } + public string ParticlesPrefab { get; } public float Axis { @@ -52,6 +53,7 @@ public class Thruster : Behavior, IAnalogBehavior public Thruster(ThrusterData data, EquippedItem item) : base(data, item) { _data = data; + ParticlesPrefab = data.ParticlesPrefab; var hullShape = ItemManager.GetRuntimeShape(Entity.Hull); var itemShape = ItemManager.GetRuntimeShape(item.EquippableItem); var hullCenter = hullShape.CenterOfMass; @@ -64,6 +66,7 @@ public class Thruster : Behavior, IAnalogBehavior public Thruster(ThrusterData data, ConsumableItemEffect item) : base(data, item) { _data = data; + ParticlesPrefab = data.ParticlesPrefab; Torque = 0; Thrust = Evaluate(_data.Thrust); } diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index a1e05f140..b92094452 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -1007,6 +1007,9 @@ First Aetheria surfaces to publish: off `InstantWeaponData`/`ConstantWeaponData`; `EntityInstance` caches managers by `Weapon.EffectPrefab`, and constant effect managers consume live `ConstantWeapon` stats. + - Done: move thruster particle prefab lookup off `ThrusterData`; + `ShipInstance` now consumes `Thruster.ParticlesPrefab`, so the renderer + reads live behavior metadata instead of the temporary config bridge. - Done: delete the legacy `Behaviors` lists from `ConsumableItemData` and `EquippableItemData`; item DTOs can no longer carry behavior config state. - Done: move runtime blueprint price aggregation and conductivity restore