From 48178a969b1e25f43803c714a900a32319b808e5 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 14 Jun 2026 05:44:27 +0100 Subject: [PATCH] Use typed shapes for equipped item insets --- .voidbot/state/aetheria.cc | Bin 68062 -> 68078 bytes Assets/Scripts/ServerShared/Entity.cs | 5 +++-- docs/aetheria-perfect-machine-map.md | 11 +++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index 4b56f801c28a7830143efc0843f278538e367cc9..57c09ee1f4ca49a380464045922c42a5f5fbb28d 100644 GIT binary patch delta 1164 zcmZWpzfTlF6!zc}!2+WwV52WVF-AB*AfhA|2rAKNq8JTgF}M5fZsYFEIWx<7S|G8+ z#>^jJ;V%kI)Ww3zXkuYvl+Y;ANGFv>i8cCmZ;#_*b$f5WH}Ctt_sxDY$)6_q>~YPO z-kzh~{i&`)J!AJ0JI&jg>GjHys3K}_mMc9aOkHw!A_(>;t#^}?!`FQ$pGSK{qn8@t z3iX8?%Oh}602`$Vn_Uxr?WZVY0MO*le^K2&tl zki>xbxY%rdOx1OSN;%%p^gf4@G=p+H-({L$APO8MXaN$_zT?{F_VA9$nG=2_tt&!gp=(6~-HsKKbWiNuwHoOsOj!bE@jHd=1gE%8XU#afzgueAbaFl27z#FYEv( zHe{$2wr_>IsPfXrJaQYk<)8}QEPP5FOAfZBQ2Dru%MF>#egQx+s;LcUB(5n}XUbPc^kV zyejeoAh=tsHr#wzY@s}CHfpxn>|Jf!9^dw^-m!<8Wr=KiFur=Jrs-)_)@R}n1TX$H z)Yq@~n1$M1&ubGw6gF)Rrl1(LRT0Yr@ds*?CbreK2O+kC2T}ZiTD?qnUy`xAJL}AB+w@Y4 zH>(GoKfzxYK_T`mA_|@?dXS2U2=!=1Jcvs5?Pil!6p!=G%s1cr-uLE{Nxn152X~rU z_V)C3=QDdd^F!AYt>$UdbOYHJA)bMqvWHgpeTh4x{M$L zPjeT+VwyRk1dGaM3mh1h1B3P zrAV=_z`+u;D)1*2j9>-w-Sn6ibWJFPB1gwoH4^jwO53qe437J>r$T0T4=~UEUwM*b zM@M5VxFE(r+p++Ox6ldYU4yhU4P1k!e&DMMVaY0aa`E zbs}vQgdGOeClg(vQH77J4n6lJDwJXP%>9|R>W!D_bvqB%$(OS6&!`&qaD$m0Or|sU zaFpBVS$G_a>g|fP=EwXw^X=-IPA;P<5xU%{XL+WVE2U`avYDM8tG@aOsqVS1V-!`I zp-`p7Fub&g71igiqc(CB0@Vk(Y_9r!;e5h;_}ON*eA&LXHsbmHT|>7tE0L~U)l*+i zH&vf}U6o2THqC7FruwAkYrjEy@lhS=?TKc8VKHbRy%BQx*Hnyj)&7u~t%=8}2Gl+D E8$n;6(*OVf diff --git a/Assets/Scripts/ServerShared/Entity.cs b/Assets/Scripts/ServerShared/Entity.cs index caf49dbcc..84b811045 100644 --- a/Assets/Scripts/ServerShared/Entity.cs +++ b/Assets/Scripts/ServerShared/Entity.cs @@ -1380,8 +1380,9 @@ public class EquippedItem ItemManager.GameplaySettings.DurabilityQualityMin, ItemManager.GameplaySettings.DurabilityQualityMax, pow(item.Quality, ItemManager.GameplaySettings.DurabilityQualityExponent)); - var hullData = itemManager.GetData(entity.Hull); - InsetShape = hullData.Shape.Inset(Data.Shape, position, item.Rotation); + var hullShape = ItemManager.GetRuntimeShape(entity.Hull); + var itemShape = ItemManager.GetRuntimeShape(item); + InsetShape = hullShape.Inset(itemShape, position, item.Rotation); if (Entity.Temperature != null) oldTemperature = Temperature; Online = new ReadOnlyReactiveProperty(ThermalOnline diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 7a4ea9a64..7f17e4b3d 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -190,10 +190,10 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. hull conductivity setup now use typed runtime catalog rows; selected DTO hydration is only the remaining item-instantiation bridge. Docking bay max ship size is imported as typed item state and `EquippedDockingBay.MaxSize` - derives from the typed runtime catalog row. `EquippedItem` inset-shape and - behavior construction still belong to legacy simulation projections until - those owners are rebuilt. Ship drag, combat/turret shot prediction height, - and thruster + derives from the typed runtime catalog row. `EquippedItem.InsetShape` now + derives from typed hull/item shape rows. `EquippedItem` behavior construction + still belongs to legacy simulation projections until that owner is rebuilt. + Ship drag, combat/turret shot prediction height, and thruster torque geometry now consume typed hull facets and typed shape masks. The item properties panel also reads typed catalog title names, descriptions, manufacturer, base mass, max durability, thermal bounds, and thermal @@ -704,6 +704,9 @@ First Aetheria surfaces to publish: - Done: import docking bay max ship size into typed item rows and move `EquippedDockingBay.MaxSize` onto the typed runtime catalog row; legacy `DockingBayData.MaxSize` is no longer the runtime docking-limit owner. + - Done: move `EquippedItem.InsetShape` construction onto typed hull and item + shape rows; legacy `HullData.Shape`/`EquippableItemData.Shape` no longer + decide equipped-item temperature footprint geometry. - Done: move final `Entity.ItemFits`, `TryFindSpace`, `TryEquip`, and `TryUnequip` gear occupancy/mass deltas onto typed catalog rows for item shape, hull shape/interior, hardpoint masks, cargo/docking category, and