call round start on sub editor

This commit is contained in:
Evil Factory
2022-06-07 15:04:33 -03:00
parent abc61e7728
commit cac80c3d86

View File

@@ -1045,6 +1045,8 @@ namespace Barotrauma
GameSession gameSession = new GameSession(backedUpSubInfo, "", GameModePreset.TestMode, CampaignSettings.Empty, null);
gameSession.StartRound(null, false);
GameMain.LuaCs.Hook.Call("roundStart");
(gameSession.GameMode as TestGameMode).OnRoundEnd = () =>
{
Submarine.Unload();