Name item catalog bridge as projection

This commit is contained in:
Meta Vens 2026-06-13 23:10:48 +01:00
commit b9377a112a
6 changed files with 39 additions and 30 deletions

View file

@ -6,13 +6,13 @@ using System.Reflection;
using GameCult.Aetheria.State.Unity;
using Unity.Mathematics;
public interface IRuntimeItemCatalogReader
public interface IRuntimeItemProjectionReader
{
ItemData Get(Guid guid);
T Get<T>(Guid guid) where T : ItemData;
}
public sealed class AetheriaRuntimeItemCatalog : IRuntimeItemCatalogReader
public sealed class AetheriaRuntimeItemCatalog : IRuntimeItemProjectionReader
{
private readonly Dictionary<Guid, ItemData> _items;
private static readonly IReadOnlyDictionary<int, Type> BehaviorTypesByUnionKey = new Dictionary<int, Type>