Type Eve command operations
This commit is contained in:
parent
be1207c585
commit
bafcfa4ead
10 changed files with 300 additions and 93 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue