Remove behavior payload GUID reader
This commit is contained in:
parent
13e7990923
commit
2554b34c76
4 changed files with 9 additions and 8 deletions
Binary file not shown.
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue