From d0cefe8d639d944bd849345d42dd6d8aca2d7594 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 13 Jun 2026 21:52:45 +0100 Subject: [PATCH] Demote faction from runtime projection --- .voidbot/state/aetheria.cc | Bin 49093 -> 49458 bytes Aetheria.State/README.md | 13 ++++++------ Assets/Scripts/ServerShared/Corporations.cs | 14 ++++++++++++- docs/aetheria-perfect-machine-map.md | 22 +++++++++++++------- 4 files changed, 34 insertions(+), 15 deletions(-) diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index b8dd20aa82fd0b7b264dc2b380f3bca84cb8eb86..a48aacd2d59152bc7b6c7ba87fbf36bf0feaf501 100644 GIT binary patch delta 1719 zcmah~&2Jk;6ql1g8=wfOR1}q>$A@HEV!MsgItfS+DWSDg71TBd!fCww>|L^+S!QOF zY=vYB;zMdLXb(t{IPoP_AR3Id-SC*dh#vd*-%N6iXtUDtSOWM>(Cmylt>$P`5mp^=X}$Ov^sr_l#Ehp zTJA0jE64;YiG0%B6`{m8vVpKz6`FmDM`x)e3|GJNA`y1)mu@Vvb+`0H*$^tlN(-Hm zr?mT(0~$NJ&Kw)S^F&1FR-4Nd`V43`t?>tmi1342?1{uMbwnh#Qu4zbu+SkJ@;PSd zJ80M*Zionnsh#ugNzgS`NDuow)s1mNcBr)%N^^OJT8Sk;(V`Xc9++xVvNk~&QxtBX z2sE&14ChVH84?{w*9x@8P+uq+L7aKALSDxILlhEYU;FeGr3 ziPbuTTMQMP({b!%T5T3)cN15`WY-!;d%y^rB11))raN*uHQ+;t1x%+_D1Dr+4T2Ym zly#M^xYWeL21AOVXEmcPq;w$Sd}GD1wK#3YqU94GV1^k`85u!R^0W`bzCY`*HP87d+{LB)Q|8=9>pF2f zB~8-Bi~{~bqg|&D6jq!5{K?Mbfdb*HnRxnm_MAGLEu47r;v2(Rhn_WbE(v|YEQzDU zxWQ1&5kCZI3%x|!;vSb*pS#LUr0S2n;RcV#PJ^%dKUJQXS}E>%S9hq4(Pj))PtxLl z5dQGt5hxQ-9?O{K-BGuh6s*N0C_eIb8Z X)^1%JuFU1{QUC8-zfX^r8f*UoX3u$r delta 1392 zcmZux&ud&o94FZro1%hPQnXmU>LDPTx7oDaG(jpgX(iH_8dIdb&A$2WzA^J=o-^~Z zT`voI@dutBC`CoFO%+?vy0jkELl2%5JV-qFXY^{nGcUW%7EkZZ=MD4y{Ce}#dzHKY zjsJLkd}{9GQvGB!S8o)z?o1bV$3Gq*^CtqLEAI}FV+#Q}F!Aj84MH}tJl8N-6v9C4>(vp|+R?C6=28G?D2UmwnfAUM4r$&KS zh(HyJd)HvH3QTb*vP07sAz`GaiKu{MsvUB08a7I0%fwsicA#B-2prBB-Rt2nsd#Q@ zW-#ct;^%mIC*kU-&O2d)_Q0Y zDo;%80|TGKI_P1XgZ~EwB|(`~!BWF(QZrr!k0Ii)XGL?0@mismc>Kaa(Y& z%Cq^jpI(1#qL`~6E;esG|5UxPG(Wd=d_Fo>Z(O?OSleDHKD?p&kGwE*x&P?R$EU(2 zw-7BZ9xwi^JUzJbPSnGdcj5LgL!`VYb!D` abstraction has been deleted; item data projection is routed through `ItemManager` and the typed runtime catalog reader. -Surviving item/faction catalog Unity DTOs inherit `RuntimeProjectionEntry`; the -old `RuntimeCatalogEntry` base name no longer appears in live source. Zone -body/orbit DTOs keep local GUID fields but no longer inherit the shared -projection identity base. +Surviving item catalog Unity DTOs inherit `RuntimeProjectionEntry`; the old +`RuntimeCatalogEntry` base name no longer appears in live source. Temporary +faction/corporation projections and zone body/orbit DTOs keep local GUID fields +but no longer inherit the shared projection identity base. The dead `InspectableRuntimeCatalogLinkAttribute` inspector metadata is gone; typed runtime projection still uses `LegacyPayloadKeyAttribute` only where the temporary mapper needs a deterministic field order. @@ -134,8 +134,9 @@ boundary once CultLib/Eve runtime packaging is available. and name generation, so generated sectors use typed corporation v2 and `aetheria.name_file.v2` records instead of legacy `Faction`/`NameFile` catalog documents. It still projects typed corporations into temporary -`Faction` DTOs, including allegiance dictionaries, because the surrounding -simulation has not yet been rebuilt around typed corporation records. +`Faction` DTOs, including allegiance dictionaries and local GUID equality, +because the surrounding simulation has not yet been rebuilt around typed +corporation records. `Aetheria.State.Smoke` writes and reopens full typed player settings plus a typed loadout template in addition to world, catalog, run state, zone state, and diff --git a/Assets/Scripts/ServerShared/Corporations.cs b/Assets/Scripts/ServerShared/Corporations.cs index 96b8f4dac..0a3b5570e 100644 --- a/Assets/Scripts/ServerShared/Corporations.cs +++ b/Assets/Scripts/ServerShared/Corporations.cs @@ -8,8 +8,10 @@ using System.Collections.Generic; using Unity.Mathematics; [Inspectable] -public class Faction : RuntimeProjectionEntry, INamedEntry +public class Faction : INamedEntry { + public Guid ID = Guid.NewGuid(); + [Inspectable] public string Name; @@ -53,4 +55,14 @@ public class Faction : RuntimeProjectionEntry, INamedEntry get => Name; set => Name = value; } + + public override int GetHashCode() + { + return ID.GetHashCode(); + } + + public override bool Equals(object obj) + { + return obj is Faction faction && faction.ID == ID; + } } diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index aecfc4c3e..6898edf7f 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -46,8 +46,8 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. the provider-owned Eve command bridge on startup and on a daemon polling loop while hosting the CultMesh state node. `Aetheria.State.ApplyPending` remains a bounded local operator applicator for both pending lanes. -- Shared domain state is still partly built around `RuntimeProjectionEntry`, GUID - identity, runtime catalog metadata, and static projection references. Dead +- Shared item domain state is still partly built around `RuntimeProjectionEntry`, + GUID identity, runtime catalog metadata, and static projection references. Dead user-record and galaxy-map-layer catalog roots have been deleted, and surviving runtime DTOs no longer carry legacy catalog group/table annotations. Newtonsoft, JsonKnownTypes, RethinkDB, LiteNetLib client transport, and the broken @@ -73,7 +73,10 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. preferences, input binding overrides, and action-bar inputs. Unity's menu and input screens mutate `RuntimePlayerSettings` in memory and queue typed Verse commits through the shared player-settings commit primitive; the in-memory - projection is not portable state authority. + projection is not portable state authority. Aetheria has its own remapping UI + that calls Unity's InputSystem at the binding/action layer; Unity's generated + `AetheriaInput` class is the edge consumer of typed binding overrides, not + the durable owner. - `Aetheria.State` now exposes typed node put/get ports for run state, zone state, and entity snapshots. The state smoke writes a run referencing a zone, a zone referencing an entity snapshot, and an entity snapshot carrying @@ -308,6 +311,9 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. - `BodyData` and `OrbitData` have also been cut loose from `RuntimeProjectionEntry`; they keep local GUID fields for zone runtime lookup, but no longer inherit shared projection equality. +- `Faction` has been cut loose from `RuntimeProjectionEntry`; it keeps local + GUID equality for galaxy dictionaries while typed corporation records remain + the durable catalog owner. - `Aetheria.Shared.Unity` no longer references the vendored `MessagePack` assembly. The embedded `GameCult.Aetheria.State.Unity` package still depends on MessagePackReader to open CultCache `.cc` records; that dependency belongs @@ -367,9 +373,9 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted. contract for full .NET smokes and Eve surface reads. Neither writes state or owns simulation. The runtime no longer has a MessagePack catalog cache. `AetheriaRuntimeItemCatalog` materializes temporary `ItemData` DTOs from typed - item records for the old simulation object model. `RuntimeProjectionEntry` is a - projection identity helper, not a persistence base, and behavior type - selection now uses an explicit runtime catalog map instead of + item records for the old simulation object model. `RuntimeProjectionEntry` is + an item projection identity helper, not a persistence base or corporation + owner, and behavior type selection now uses an explicit runtime catalog map instead of `UnionAttribute` reflection. Item/behavior DTO field layout for the temporary projection bridge is now marked with project-owned `LegacyPayloadKeyAttribute`, not MessagePack @@ -731,8 +737,8 @@ First Aetheria surfaces to publish: `Assets/Scripts` now finds only `ItemManager` checking its own hydrated value. - Live Unity source has no `RuntimeCatalogLink` or `RuntimeCatalogLinkBase`; item instances use `RuntimeItemReference` and expose `Data.ItemId`. -- Live Unity source has no `RuntimeCatalogEntry`; surviving DTOs inherit - `RuntimeProjectionEntry`. +- Live Unity source has no `RuntimeCatalogEntry`; only surviving item DTOs + inherit `RuntimeProjectionEntry`. - Live Unity source has no `InspectableRuntimeCatalogLinkAttribute`; `LegacyPayloadKeyAttribute` remains only as the temporary mapper key. - Unity batchmode compile also returned cleanly after disabling `MessagePack`