From d6e478cd5ba040888a36b74658e94cf239713d50 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 14 Jun 2026 17:54:23 +0100 Subject: [PATCH] Move AetherDrive visuals behind runtime owner --- .voidbot/state/aetheria.cc | Bin 85139 -> 85161 bytes Assets/Scripts/Gameplay/ShipInstance.cs | 2 +- .../ServerShared/Behaviors/AetherDrive.cs | 7 ++++--- docs/aetheria-perfect-machine-map.md | 3 +++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index 29ba6444ac7d4a77b8401fed3f91a4e8b313ead1..d4916e094c7e9b639d616d5a5fdd4c14014f9ed7 100644 GIT binary patch delta 875 zcmY*Y&ubGw6lQ9xOqFyGF6@B6;@Ua~v%d3R{<<3R4p>-1-Z4Hc=;@oa!R!UXe{C!-K$r?Ww`TsX>-sOkRH*8Rckw z)Seb~OwAH|G`75!A*BrYy~HkTRng~lp)`bOxyLPcKDYrFVM~{N5#5r;a_J&ys?ve^wa(kepA35^3K1yWhS$B{A!4PON*++gR{z$$Q+G;v6> z;bClS8`0=eNSZv8D~&Z?C3DtyzO=JY`X1KI&h~ry(OO968kcgt)+B!)OjatrBdL+9 z(XHC{F1gkO^xD^B??`QC-INLfB{!&kN3J<;YBJLr-{HCB&(n*noPJ+slllH))Pc@e zWbMtyB8#N|&QUz+^a{Jf?x)QawlLavAw5`O&&R&+;^)ym6bjva hIGMg$V`{jw6!Wv`nIe1HJ00#9*{@vp&HQX({U56xH%9;f delta 893 zcmZ8gO>0v@6lK~}8<#>+TwO(kLK{tuwl&f(A}Ux6ZE%s@^u7C%(U+O$%)G>kP)b1% zabe%$QMcmfs=F?w3&DkdARzt#R|WroH)-bCb~$J6oO{l>cfRb5Bs(L!ABWDAW^YXu z3#A*^>u=du@_p!ahRpO4HT>KmH>di@Xb#w;t?}I6c#h3XpDl8}kGSbH~4Bc5%a9LJKYTx#fiqUdTnO`((8#qWjWVE*p=y;gKjUna{_G7yak;L-=9S_rF_+hyg8KoB7rvy;KN zz|aTod1wqlA`Brm2y58nZJ{(AazLf_Fxk8_w(+K-Kq?E|_d#L@j%CyqCg$NFDl)9% zM)SDwGT^gF5x?YGs}AT`T0z48N2*nXlqwpa=5{?opZu(ciqa&Jmq?}3#sysXN%y*(); if (drive != null) { - var particles = Instantiate(UnityHelpers.LoadAsset(drive.DriveData.Particles), transform, false); + var particles = Instantiate(UnityHelpers.LoadAsset(drive.Particles), transform, false); var main = particles.main; main.customSimulationSpace = LocalSpace; _aetherDrive = new AetherDriveInstance diff --git a/Assets/Scripts/ServerShared/Behaviors/AetherDrive.cs b/Assets/Scripts/ServerShared/Behaviors/AetherDrive.cs index 625cddf96..1f7ceaa5b 100644 --- a/Assets/Scripts/ServerShared/Behaviors/AetherDrive.cs +++ b/Assets/Scripts/ServerShared/Behaviors/AetherDrive.cs @@ -67,8 +67,7 @@ public class AetherDrive : Behavior public float3 Rpm { get; private set; } public float MaximumRpm { get; private set; } public float2 ThrustDirection { get; private set; } - - public AetherDriveData DriveData => _data; + public string Particles { get; } public float3 Axis { @@ -79,11 +78,13 @@ public class AetherDrive : Behavior public AetherDrive(AetherDriveData data, EquippedItem item) : base(data, item) { _data = data; + Particles = data.Particles; } public AetherDrive(AetherDriveData data, ConsumableItemEffect item) : base(data, item) { _data = data; + Particles = data.Particles; } public override bool Execute(float dt) @@ -141,4 +142,4 @@ public class AetherDrive : Behavior return false; } -} \ No newline at end of file +} diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index b92094452..5307852f6 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -1010,6 +1010,9 @@ First Aetheria surfaces to publish: - 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: move AetherDrive particle prefab lookup off `AetherDriveData`; + `ShipInstance` now consumes `AetherDrive.Particles`, and the public + `DriveData` escape hatch has been removed. - 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