From 2554b34c76724a6e6cda7bf3c76b33cadc1f75df Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 15 Jun 2026 02:36:26 +0100 Subject: [PATCH] Remove behavior payload GUID reader --- .voidbot/state/aetheria.cc | Bin 96200 -> 98306 bytes Aetheria.State/README.md | 3 +++ Assets/Scripts/ServerShared/ItemManager.cs | 11 +++-------- docs/aetheria-perfect-machine-map.md | 3 +++ 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index aa611bf27efeb27719171642059542bcd9e4bb01..d8c9871160125c775543e6990858fc09756acbb6 100644 GIT binary patch delta 1886 zcmah~PiP!f7-!NLst2*ssI*eQfQJS%vztw_`G;WAXjn`_+Wa|GguZ?A?aVVX^QP~; zNn8o6w$MvFR99F$d8k@bD8z&0B8Z2Ax8iYcUP}eJ_&=#nAYu1hcE?vuz=j9kY5MnQMEAaBYRmMP<7f zph4Fz6-#BiShhzeTGj>YVq>XdFkEI4^H4!|2grATsuHe;5J?DRlxEOio3~z1VI}S1XQTdMuUjJ)MLWdWn??e(Zm#IiAE4%ELDpA zD0Lb_RtGL4!)T9AWk5_ZBSSq)5QPSwn6;b--Q%-cSjrYK&XEePCI(zd$41iRKL8_; zj|l6+bD3eyt3RA>{JtRbY;B~%#{@fy^a%xF1$U0s0=WX(mr0P8nscI!5|O7zU<>Q? zlnPvQ1y8kXn#s%`z)i7BplQt5K0XYo$vz)!zK;u=3_R ztEg(^Em&sU7ZH;FG2!Da6Iqmm-0U@# zFFMv=L$!@+&1VYT5m;m)#sRC3z(!>R=JK)QtQitKQ(vcV)G2(6ripes)l9Wcy<`ow zZl1M9n-9Kv-db#4xpBI+_kwk*buefR^o>CC>culnbK~sEw^o_f=+3r=eCyS>b6^^_ zsPiLWVO3yc$kak(zW3&ZnZkxfr3=ewSYa-X7s&sGCCOP(SjR9fw0?WhI@id%0kBkDO~8kuY_rGQ<5)x(KQG-Nwyk7`0ZM4hL2*9uWeTkV#Xsy9uYCXsGI>)8CZJWf+Tq1~n>0p9G3J$vFF*gr|O* zGwq>AqkFwrni(6P8J}<_%B6|&xY5scRmHbjGO-`kkTI=DK^;0)ARmyL^f!6)N dlD%*_%X~kyKIw(BTl4Vm(E9n=Zftt&@;_oWpRWJ_ delta 202 zcmZo_U_0@ib;B|yPD2wb17kf4Q_Ja%rHo>ek1};bg)9w>Awv1gRWKn#s1OH>JX3mi zvnI=SO%}#P6~-CcyEPbpIZb~T&&bU_VP$DSN@B_MizST098lwpC!c4Qf|+7u0XBHL sY6;_hn3%B<%rds=oTZHUaB)+R_;jc_md4u^${25OazTu>G%<++0D+b`` abstraction, `ItemManager.GetData` hydration path, vague `ItemInstance.Data` identity field, and old `RuntimeItemReference.Projection` cache have been deleted; runtime item facts come from typed catalog rows. +ItemManager's behavior payload bridge no longer exposes a generic GUID reader; +migrated legacy-id behavior payload fields cross only through the explicit +item-key projection helper. Loadout generation now applies typed catalog prefilters for item category, hardpoint type, shape fit, hull type, and behavior kind, then instantiates generated equipment directly from typed runtime rows. diff --git a/Assets/Scripts/ServerShared/ItemManager.cs b/Assets/Scripts/ServerShared/ItemManager.cs index fdbffa6c8..9645cc16e 100644 --- a/Assets/Scripts/ServerShared/ItemManager.cs +++ b/Assets/Scripts/ServerShared/ItemManager.cs @@ -412,16 +412,11 @@ public class ItemManager return _fields.TryGetValue(key, out var value) ? checked((uint)value.NumberValue) : fallback; } - public Guid Guid(int key, Guid fallback = default) - { - return _fields.TryGetValue(key, out var value) && System.Guid.TryParse(value.LegacyIdValue, out var result) - ? result - : fallback; - } - public string ItemKey(int key, string fallback = "") { - return Guid(key) is var itemId && itemId != System.Guid.Empty + return _fields.TryGetValue(key, out var value) && + System.Guid.TryParse(value.LegacyIdValue, out var itemId) && + itemId != System.Guid.Empty ? AetheriaRuntimeItemReference.FromLegacyId(itemId) : fallback; } diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 77c50f56a..b054b81f1 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -1021,6 +1021,9 @@ First Aetheria surfaces to publish: equipped behavior instances. It now modifies the `PerformanceStat` objects actually held by runtime behavior configs instead of rebuilding temporary config DTOs from the catalog. + - Done: delete the generic `BehaviorPayloadReader.Guid(...)` helper from + `ItemManager`; migrated behavior payload legacy-ID fields now cross the + runtime bridge only through the explicit `ItemKey(...)` projection. - Done: move `StatModifier` behavior kind/family matching onto `AetheriaRuntimeBehaviorMetadataCatalog`; the behavior only normalizes migrated `*Data` tokens before asking the package-owned metadata owner.