Normalize schematic typed snapshots
This commit is contained in:
parent
2941847112
commit
67c1b3d689
2 changed files with 22 additions and 13 deletions
|
|
@ -2563,8 +2563,8 @@ static void RequireDaemonRenderQueryAuthority(string root)
|
|||
"CultMeshReactiveDocument<AetheriaRuntimeCatalogSnapshot> _catalog",
|
||||
"CultMeshReactiveDocument<AetheriaRuntimePlayerSettingsDocument> _playerSettings",
|
||||
"CultMeshReactiveDocument<AetheriaRuntimeCurrentEntityDocument> _currentEntity",
|
||||
"ResolveCatalog()",
|
||||
"ResolveCurrentEntityHudStatus()",
|
||||
"CatalogSnapshot()",
|
||||
"CurrentEntityHudStatus()",
|
||||
".ReactiveCatalogSnapshot(\"unity-schematic-display\")",
|
||||
".ReactivePlayerSettingsDocument(\"unity-schematic-display\")",
|
||||
".ReactiveCurrentEntity(\"unity-schematic-display\")",
|
||||
|
|
@ -7671,7 +7671,10 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root)
|
|||
"_catalog?.Dispose()",
|
||||
"_playerSettings?.Dispose()",
|
||||
"_currentEntity?.Dispose()",
|
||||
"ResolveCatalog()?.Current?.FindItem(item, x => x.ItemKey)",
|
||||
"CatalogSnapshot()?.FindItem(item, x => x.ItemKey)",
|
||||
"private AetheriaRuntimeCatalogSnapshot CatalogSnapshot()",
|
||||
"private AetheriaRuntimePlayerSettingsDocument PlayerSettingsSnapshot()",
|
||||
"private AetheriaRuntimeCurrentEntityHudStatus CurrentEntityHudStatus()",
|
||||
"return _playerSettings?.Current;",
|
||||
"private void OnDestroy()"
|
||||
};
|
||||
|
|
@ -7684,6 +7687,12 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root)
|
|||
"SchematicDisplay should bind shared catalog/settings/current-entity HUD through managed reactive typed documents: " +
|
||||
string.Join(", ", missingSchematicDisplaySymbols));
|
||||
}
|
||||
if (schematicDisplay.Contains("ResolveCatalog()?.Current?.FindItem", StringComparison.Ordinal) ||
|
||||
schematicDisplay.Contains("private CultMeshReactiveDocument<AetheriaRuntimeCatalogSnapshot> ResolveCatalog()", StringComparison.Ordinal))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"SchematicDisplay should expose catalog values through CatalogSnapshot() instead of returning reactive document plumbing to callers.");
|
||||
}
|
||||
|
||||
var forbiddenSchematicDisplaySymbols = new[]
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue