Multi-window support (#1713)

This commit is contained in:
Pieter-Jan Briers
2021-05-02 14:05:50 +02:00
committed by GitHub
parent eb9e842027
commit 8efffc471d
84 changed files with 3973 additions and 1590 deletions

View File

@@ -449,14 +449,13 @@ namespace Robust.UnitTesting
cfg.OverrideConVars(new []{(CVars.NetPredictLagBias.Name, "0")});
var failureLevel = _options == null ? LogLevel.Error : _options.FailureLogLevel;
client.ContentStart = _options?.ContentStart ?? false;
client.Startup(() => new TestLogHandler("CLIENT", failureLevel));
var gameLoop = new IntegrationGameLoop(DependencyCollection.Resolve<IGameTiming>(),
_fromInstanceWriter, _toInstanceReader);
var failureLevel = _options == null ? LogLevel.Error : _options.FailureLogLevel;
client.OverrideMainLoop(gameLoop);
client.MainLoop(GameController.DisplayMode.Headless);
client.ContentStart = true;
client.Run(GameController.DisplayMode.Headless, () => new TestLogHandler("CLIENT", failureLevel));
}
catch (Exception e)
{