Hide generic command submitter

This commit is contained in:
Meta Vens 2026-06-21 13:03:25 +01:00
commit 768712469b
2 changed files with 8 additions and 2 deletions

View file

@ -6838,7 +6838,7 @@ static void RequireTypedEveCommandBodies(string root)
"global::Aetheria.State.AetheriaCommandPort",
"public const string DefaultRuntimeId = \"aetheria-command-client\"",
"string.IsNullOrWhiteSpace(runtimeId) ? DefaultRuntimeId : runtimeId",
"public static class AetheriaRuntimeCommandSubmitter",
"internal static class AetheriaRuntimeCommandSubmitter",
"TrySubmitEveCommand(",
"TrySubmitDaemonCommand(",
"CreatePlayerSettingsCommand(",
@ -6942,6 +6942,12 @@ static void RequireTypedEveCommandBodies(string root)
string.Join(", ", sharedCommandRuntimeIdHits));
}
if (runtimeCommandPort.Contains("public static class AetheriaRuntimeCommandSubmitter", StringComparison.Ordinal))
{
throw new InvalidOperationException(
"Shared command runtime still exposes the generic transport submitter publicly instead of routing callers through typed clients.");
}
var forbiddenUnitySubmitterSymbols = new[]
{
"AetheriaRuntimeCommandSubmitter.TrySubmitEveCommand(",