Expose legacy catalog as read port

This commit is contained in:
Meta Vens 2026-06-13 07:41:21 +01:00
commit c9f6002ff2
9 changed files with 42 additions and 34 deletions

View file

@ -10,7 +10,14 @@ using System.Reflection;
using MessagePack;
using UniRx;
public class LegacyCatalogCache
public interface ILegacyCatalogReader
{
DatabaseEntry Get(Guid guid);
T Get<T>(Guid guid) where T : DatabaseEntry;
IEnumerable<T> GetAll<T>() where T : DatabaseEntry;
}
public class LegacyCatalogCache : ILegacyCatalogReader
{
private readonly object addLock = new object();