Use runtime-neutral command port defaults
This commit is contained in:
parent
bd2b491b59
commit
567e8cff81
2 changed files with 22 additions and 3 deletions
|
|
@ -6799,6 +6799,8 @@ static void RequireTypedEveCommandBodies(string root)
|
|||
"namespace Aetheria.State",
|
||||
"namespace GameCult.Aetheria.State.Verse",
|
||||
"global::Aetheria.State.AetheriaCommandPort",
|
||||
"public const string DefaultRuntimeId = \"aetheria-command-client\"",
|
||||
"string.IsNullOrWhiteSpace(runtimeId) ? DefaultRuntimeId : runtimeId",
|
||||
"public static class AetheriaRuntimeCommandSubmitter",
|
||||
"TrySubmitEveCommand(",
|
||||
"TrySubmitDaemonCommand(",
|
||||
|
|
@ -6888,6 +6890,21 @@ static void RequireTypedEveCommandBodies(string root)
|
|||
string.Join(", ", unityNamedRuntimeHits));
|
||||
}
|
||||
|
||||
var forbiddenSharedCommandRuntimeIds = new[]
|
||||
{
|
||||
"string runtimeId = \"unity-input-provider\"",
|
||||
"? \"unity-input-provider\" : runtimeId"
|
||||
};
|
||||
var sharedCommandRuntimeIdHits = forbiddenSharedCommandRuntimeIds
|
||||
.Where(symbol => runtimeCommandPort.Contains(symbol, StringComparison.Ordinal))
|
||||
.ToArray();
|
||||
if (sharedCommandRuntimeIdHits.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Shared command runtime still uses Unity-specific fallback runtime ids: " +
|
||||
string.Join(", ", sharedCommandRuntimeIdHits));
|
||||
}
|
||||
|
||||
var forbiddenUnitySubmitterSymbols = new[]
|
||||
{
|
||||
"AetheriaRuntimeCommandSubmitter.TrySubmitEveCommand(",
|
||||
|
|
|
|||
Loading…
Reference in a new issue