Use generic Verse record watches
This commit is contained in:
parent
195b434702
commit
0cff460e91
3 changed files with 47 additions and 100 deletions
|
|
@ -11594,11 +11594,8 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
"public static class AetheriaRuntimeVerseContractRegistry",
|
||||
"AetheriaRuntimeVerseContractRegistry.CreateCultCacheRegistry()",
|
||||
"AetheriaRuntimeVerseContractRegistry.CreateCultNetRegistry(registry)",
|
||||
"WatchLatestFrames()",
|
||||
"WatchLatestSoaViews()",
|
||||
"public Observable<CultNetDatabaseChange<TDocument>> WatchRecord<TDocument>(",
|
||||
"WatchRecord<AetheriaRuntimeDaemonFrameDocument>",
|
||||
"WatchRecord<AetheriaRuntimeDaemonSoaViewDocument>",
|
||||
"WatchVerseAuthorityPolicies()",
|
||||
"CultMeshMutableStatePointer<AetheriaRuntimeDaemonFrameDocument>",
|
||||
"CultMeshMutableStatePointer<AetheriaRuntimeVerseAuthorityPolicyDocument>",
|
||||
"CultMeshMutableStatePointer<AetheriaRuntimeStarbridgeScenarioDocument>",
|
||||
|
|
@ -11615,8 +11612,6 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
"new CultRecordKey(\"daemon:aetheria.starbridge.session.latest.v1\")",
|
||||
"Document<AetheriaRuntimeVerseAuthorityPolicyDocument>(",
|
||||
"typeof(EveSurfaceState)",
|
||||
"WatchDaemonGameTuiSurfaces()",
|
||||
"WatchDaemonEditorTuiSurfaces()",
|
||||
"CultMeshMutableStatePointer<EveSurfaceState>",
|
||||
"private AetheriaClientState? _aetheriaState",
|
||||
"private AetheriaRuntimeManagedClientInputs? _managedClientInputs",
|
||||
|
|
@ -11655,6 +11650,32 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
string.Join(", ", missingClientSymbols));
|
||||
}
|
||||
|
||||
var forbiddenNamedWatchHelpers = new[]
|
||||
{
|
||||
"WatchProviderAdvertisements(",
|
||||
"WatchHealth(",
|
||||
"WatchCommandBoundary(",
|
||||
"WatchVerseAuthorityPolicies(",
|
||||
"WatchLatestFrames(",
|
||||
"WatchLatestSoaViews(",
|
||||
"WatchStarbridgeScenarios(",
|
||||
"WatchStarbridgeSessions(",
|
||||
"WatchStarbridgePlayerSeat(",
|
||||
"WatchDaemonGameSurfaces(",
|
||||
"WatchDaemonGameTuiSurfaces(",
|
||||
"WatchDaemonEditorSurfaces(",
|
||||
"WatchDaemonEditorTuiSurfaces("
|
||||
};
|
||||
var survivingNamedWatchHelpers = forbiddenNamedWatchHelpers
|
||||
.Where(symbol => client.Contains(symbol, StringComparison.Ordinal))
|
||||
.ToArray();
|
||||
if (survivingNamedWatchHelpers.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"AetheriaRuntimeVerseClient must expose generic WatchRecord<TDocument>(CultRecordKey) instead of named record-watch wrappers: " +
|
||||
string.Join(", ", survivingNamedWatchHelpers));
|
||||
}
|
||||
|
||||
var requiredManagedInputSymbols = new[]
|
||||
{
|
||||
"internal sealed class AetheriaRuntimeManagedClientInputs : IDisposable",
|
||||
|
|
@ -11994,7 +12015,7 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
var requiredDocSymbols = new[]
|
||||
{
|
||||
"AetheriaRuntimeVerseClient",
|
||||
"WatchRecord<T>()",
|
||||
"WatchRecord<T>(CultRecordKey)",
|
||||
"CultMeshMutableStatePointer<T>",
|
||||
"Unity",
|
||||
"Verse records",
|
||||
|
|
|
|||
Loading…
Reference in a new issue