2026-06-13 00:31:22 +01:00
|
|
|
using Aetheria.State.Documents;
|
|
|
|
|
using GameCult.Caching;
|
|
|
|
|
using GameCult.Networking;
|
|
|
|
|
|
|
|
|
|
namespace Aetheria.State;
|
|
|
|
|
|
|
|
|
|
public static class AetheriaDocumentRegistry
|
|
|
|
|
{
|
|
|
|
|
public static CultDocumentRegistry CreateCultCacheRegistry()
|
|
|
|
|
{
|
|
|
|
|
var registry = new CultDocumentRegistry();
|
|
|
|
|
foreach (var documentType in DocumentTypes)
|
|
|
|
|
{
|
|
|
|
|
registry.GetRequired(documentType);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return registry;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static CultNetDocumentRegistry CreateCultNetRegistry(CultDocumentRegistry? cacheRegistry = null)
|
|
|
|
|
{
|
|
|
|
|
var registry = cacheRegistry ?? CreateCultCacheRegistry();
|
|
|
|
|
return new CultNetDocumentRegistry(
|
|
|
|
|
registry,
|
|
|
|
|
new[]
|
|
|
|
|
{
|
|
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaWorldState>(registry),
|
|
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaItemDefinition>(registry),
|
|
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaCorporation>(registry),
|
2026-06-13 06:15:55 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaNameFile>(registry),
|
2026-06-13 00:31:22 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaPlayerProfile>(registry),
|
|
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaRuntimeSession>(registry),
|
2026-06-13 04:00:10 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaMigrationLedger>(registry),
|
2026-06-13 05:53:18 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaLegacyCatalogQuarantine>(registry),
|
2026-06-13 04:00:10 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaPlayerSettings>(registry),
|
2026-06-13 10:14:38 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaLoadoutTemplate>(registry),
|
2026-06-13 06:27:59 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaRunState>(registry),
|
|
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaZoneState>(registry),
|
2026-06-13 08:37:10 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaEntitySnapshot>(registry),
|
2026-06-13 15:54:02 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaRuntimeCommitDrainStatus>(registry),
|
2026-06-13 17:02:52 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<AetheriaEveCommandDrainStatus>(registry),
|
2026-06-13 15:59:26 +01:00
|
|
|
CultNetDocumentBinding.ForDocument<EveSurfaceState>(registry),
|
|
|
|
|
CultNetDocumentBinding.ForDocument<EveProviderAdvertisementState>(registry)
|
2026-06-13 00:31:22 +01:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IReadOnlyList<Type> DocumentTypes { get; } =
|
|
|
|
|
[
|
|
|
|
|
typeof(AetheriaWorldState),
|
|
|
|
|
typeof(AetheriaItemDefinition),
|
|
|
|
|
typeof(AetheriaCorporation),
|
2026-06-13 06:15:55 +01:00
|
|
|
typeof(AetheriaNameFile),
|
2026-06-13 00:31:22 +01:00
|
|
|
typeof(AetheriaPlayerProfile),
|
|
|
|
|
typeof(AetheriaRuntimeSession),
|
2026-06-13 04:00:10 +01:00
|
|
|
typeof(AetheriaMigrationLedger),
|
2026-06-13 05:53:18 +01:00
|
|
|
typeof(AetheriaLegacyCatalogQuarantine),
|
2026-06-13 04:00:10 +01:00
|
|
|
typeof(AetheriaPlayerSettings),
|
2026-06-13 10:14:38 +01:00
|
|
|
typeof(AetheriaLoadoutTemplate),
|
2026-06-13 06:27:59 +01:00
|
|
|
typeof(AetheriaRunState),
|
|
|
|
|
typeof(AetheriaZoneState),
|
2026-06-13 08:37:10 +01:00
|
|
|
typeof(AetheriaEntitySnapshot),
|
2026-06-13 15:54:02 +01:00
|
|
|
typeof(AetheriaRuntimeCommitDrainStatus),
|
2026-06-13 17:02:52 +01:00
|
|
|
typeof(AetheriaEveCommandDrainStatus),
|
2026-06-13 15:59:26 +01:00
|
|
|
typeof(EveSurfaceState),
|
|
|
|
|
typeof(EveProviderAdvertisementState)
|
2026-06-13 00:31:22 +01:00
|
|
|
];
|
|
|
|
|
}
|