[ChatBoxExtensions] Updated for the latest API.

This commit is contained in:
kafeijao 2023-04-26 19:38:28 +01:00
parent 62eb612d73
commit 37ad5a8f9c
No known key found for this signature in database
GPG key ID: E99978723E454B4C
9 changed files with 88 additions and 40 deletions

View file

@ -1,16 +1,11 @@
using ABI_RC.Core;
using ABI_RC.Core.Base;
using ABI_RC.Core.Savior;
using Kafe.ChatBox;
namespace NAK.Melons.ChatBoxExtensions.Integrations;
namespace NAK.Melons.ChatBoxExtensions.Integrations;
internal class ChilloutVRInputCommands : CommandBase
{
public static void RegisterCommands()
{
Commands.RegisterCommand("emote",
onCommandSent: (message, sound) =>
onCommandSent: (message, sound, displayMsg) =>
{
LocalCommandIgnoreOthers(message, args =>
{
@ -20,7 +15,7 @@ internal class ChilloutVRInputCommands : CommandBase
}
});
},
onCommandReceived: (sender, message, sound) =>
onCommandReceived: (sender, message, sound, displayMsg) =>
{
RemoteCommandListenForAll(message, args =>
{
@ -32,7 +27,7 @@ internal class ChilloutVRInputCommands : CommandBase
});
Commands.RegisterCommand("jump",
onCommandSent: (message, sound) =>
onCommandSent: (message, sound, displayMsg) =>
{
LocalCommandIgnoreOthers(message, args =>
{
@ -44,7 +39,7 @@ internal class ChilloutVRInputCommands : CommandBase
ChatBoxExtensions.InputModule.jump = true;
});
},
onCommandReceived: (sender, message, sound) =>
onCommandReceived: (sender, message, sound, displayMsg) =>
{
RemoteCommandListenForAll(message, args =>
{
@ -55,4 +50,4 @@ internal class ChilloutVRInputCommands : CommandBase
});
});
}
}
}