From 87b622441e591c1f0be4b74e7063f954ad0fee93 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 13 Jun 2026 12:29:32 +0100 Subject: [PATCH] Use typed runtime catalog for item manufacturer UI --- .voidbot/state/aetheria.cc | Bin 28606 -> 28510 bytes .../UI/Properties Panel/PropertiesPanel.cs | 2 +- docs/aetheria-perfect-machine-map.md | 9 +++++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index eff5665a07e266fe356d48154382339f689bec92..d283076b8018a3f97fdd95f79bdf206baef1d362 100644 GIT binary patch delta 863 zcmZWo&1(}u6gO?b_F$=^RRh{5mh_SYB5j)1;=xj-fkOQP$!)s(vK=}*v(C&Wt{w_{ z6ECuO_MlR43X4}2!LwcqQuR*|uO57}NlJ^CS@`X|-^Y7zKKv-`?G@hb42{h%*5<0U z`fTf2;Z*u%=xGm_onOcSHTqH*jZl- zV!n#)Aq=JEHgO@X(pUy2Nr|)r-a&9?lyKjWa{FK`7Xo5~2Qz}epvb%gd=)Y-DVRmg zncxp{*|bnP*?h9BNJqv9ArG7#O0KD06(vQI%TQ)*XdG}erkf%5y9OKBCSP=!hUQUO z`l3{va9-}kOfyI7z~80m!eTZ#bM9EPxyB-hBcELO(B*cs-#F^=pm+Tq>pZMR=h_*f z94^M-ugSJ%-%lKU{8D3kcP>3M-#mSp#`^yz#p%!bKFWdla<-$tZ@jSIzSzen*!qod6NNwlYf8EnSjQYf#P~Mz z5jazzbQ5%h3S29qZJaq4Xdeu6ZG?p_qeEcm8fYXdHnja3p2^&m9fE$ zL@FM{0xcv_d1TIMgWf9f-a{rHT`td6uAx~=HzC8$!~YoD8WCt*kR~<_!c=dIA-10q&;#G<57Y z=!5@MWfhBTgN%{&v`x0lWH7`iRgfz0JvE-(ogTjb{Wk77;IRWb5(ff8>6>&WPIR+8 z=Topzz*?E2I7E}%JsC;vEzo*9jwpGZoS&K;oJ|EPVx!|6lQ+|&3r*=r_FvQWCrGMa zQyWT<-vAxX?ZnJ5ibG*?I6YNZZ2y`bJAHMb7L$LIj&R5#h$BIoMK&t=Fn8KMo|JT? zsc~=rrNOPk%gN5haH74Tc2aqErhRbz=g`^CqpDWxuN?F3ms2zC_PXEGuG9wy`nzk% qr{2;0ZIw&e+j_#^cY#U3@1P|biJ;%N?4vLo#TKMZt{YW+8Qn_a&E diff --git a/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs b/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs index 44b516de8..12c818fb7 100644 --- a/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs +++ b/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs @@ -390,7 +390,7 @@ public class PropertiesPanel : MonoBehaviour AddProperty("Quantity", () => simpleCommodity.Quantity.ToString()); var sheet = AddStatSheet(); - var manufacturer = GameManager.ItemManager.GetCatalogEntry(data.Manufacturer); + var manufacturer = ActionGameManager.RuntimeCatalog?.FindCorporationByLegacyId(data.Manufacturer.ToString()); sheet.AddStat("Manufacturer", () => manufacturer?.Name ?? "GameCult"); sheet.AddStat("Mass", () => ActionGameManager.PlayerSettings.Format(GameManager.ItemManager.GetMass(item))); diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 07e7adfeb..6fcebb392 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -89,7 +89,9 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. now go through narrow `ItemManager.GetCatalogEntry` and `GetCatalogEntries` methods. This does not remove the legacy reader under the hood; it prevents old catalog authority from leaking into every caller - that only needs a domain lookup. + that only needs a domain lookup. The item properties UI no longer uses + `ItemManager` for manufacturer display; it resolves the manufacturer through + the package-owned `ActionGameManager.RuntimeCatalog` typed snapshot. - `Galaxy` generation no longer accepts `ILegacyCatalogReader`. Sector and tutorial generation receive `ItemManager` and use the same narrow catalog lookup port for factions and name files. `ActionGameManager` now has a @@ -224,7 +226,10 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. `Aetheria.State.Unity` facade maps typed `.cc` documents into the same contract for full .NET smokes and Eve surface reads. Neither writes state or owns simulation. The legacy cache no longer has a public mutation surface, but - it still materializes `ItemManager`. + it still materializes `ItemManager`. Item properties manufacturer display is + a typed snapshot consumer; trade debug, galaxy generation, loadout generation, + entity restore, and the give console command still use `ItemManager` legacy + domain materialization. - Inputs: Unity gameplay code, legacy catalog files, typed state documents, and CultMesh server state. - Outputs: `Aetheria.State` emits `.cc` state and CultMesh documents. Legacy