Hide generic command submitter
This commit is contained in:
parent
02e51890ef
commit
768712469b
2 changed files with 8 additions and 2 deletions
|
|
@ -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(",
|
||||
|
|
|
|||
Loading…
Reference in a new issue