Remove behavior payload GUID reader

This commit is contained in:
Meta Vens 2026-06-15 02:36:26 +01:00
commit 2554b34c76
4 changed files with 9 additions and 8 deletions

Binary file not shown.

View file

@ -106,6 +106,9 @@ The old generic `RuntimeCatalogLink<T>` 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.

View file

@ -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;
}

View file

@ -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.