Added support for MoonSharp's VsCodeDebugger

This commit is contained in:
EvilFactory
2023-03-27 15:20:14 -03:00
parent 9dc87c34f3
commit 4303cf3111
10 changed files with 149 additions and 19 deletions
@@ -1260,6 +1260,18 @@ namespace Barotrauma
GameMain.LuaCs.Initialize();
}));
commands.Add(new Command("toggleluadebug", "Toggles the MoonSharp Debug Server.", (string[] args) =>
{
int port = 41912;
if (args.Length > 0)
{
int.TryParse(args[0], out port);
}
GameMain.LuaCs.ToggleDebugger(port);
}));
#if WINDOWS
commands.Add(new Command("install_cl_lua|install_cl|install_cl_cs|install_cl_luacs", "Installs Client-Side LuaCs into your client.", (string[] args) =>
{