Type Eve command operations

This commit is contained in:
Meta Vens 2026-06-21 10:21:00 +01:00
commit bafcfa4ead
10 changed files with 300 additions and 93 deletions

View file

@ -89,7 +89,7 @@ public class ActionGameManager : MonoBehaviour
public static void RequestRuntimeInputBindingOverride(string actionName, int bindingIndex, string inputSystemPath)
{
TrySendRuntimeInputSettingsCommand(
AetheriaRuntimeInputSettingsCommands.SetBindingOverride,
AetheriaRuntimeEveCommandKind.SetBindingOverride,
new AetheriaRuntimeInputSettingsCommandBody
{
ActionName = actionName ?? "",
@ -103,7 +103,7 @@ public class ActionGameManager : MonoBehaviour
public static void RequestRuntimeActionBarInput(string inputSystemPath, bool enabled)
{
TrySendRuntimeInputSettingsCommand(
AetheriaRuntimeInputSettingsCommands.SetActionBarEnabled,
AetheriaRuntimeEveCommandKind.SetActionBarEnabled,
new AetheriaRuntimeInputSettingsCommandBody
{
InputSystemPath = inputSystemPath ?? "",
@ -114,7 +114,7 @@ public class ActionGameManager : MonoBehaviour
}
private static bool TrySendRuntimeInputSettingsCommand(
string command,
AetheriaRuntimeEveCommandKind command,
AetheriaRuntimeInputSettingsCommandBody body,
string clientId,
string label)

View file

@ -341,7 +341,7 @@ public class MainMenu : MonoBehaviour
return;
case AetheriaRuntimeMainMenuCommandKind.VerseHostCommand:
if (TrySendVerseHostCommand(command.Command))
if (TrySendVerseHostCommand(AetheriaRuntimeEveCommandClient.CommandKindForSurface(request)))
{
ShowVerseSettingsSurface();
}
@ -468,10 +468,10 @@ public class MainMenu : MonoBehaviour
}
}
private static bool TrySendVerseHostCommand(string command)
private static bool TrySendVerseHostCommand(AetheriaRuntimeEveCommandKind command)
{
var stateBoot = CurrentStateBoot();
if (!CanSendLocalEveCommand(stateBoot, "Verse-host", command))
if (!CanSendLocalEveCommand(stateBoot, "Verse-host", command.ToString()))
return true;
try