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
@@ -3380,6 +3380,18 @@ namespace Barotrauma
{
GameMain.LuaCs.Initialize();
}));
commands.Add(new Command("cl_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);
}));
}
private static void ReloadWearables(Character character, int variant = 0)