Files
RobustToolbox/Robust.UnitTesting/GameControllerDummy.cs
Vera Aguilera Puerto c06707d519 Adds ServerOptions, improve GameControllerOptions, fix engine integration tests (#1844)
* Adds ServerOptions, improve GameControllerOptions, fix engine integration tests

* Do component auto-registration in engine integration tests by default

* Fix integration tests on content, register components ONLY if not contentstarted or options are null

* Add integration test for engine integration tests working correctly

* Move cvar overrides out of content and into engine.
2021-07-03 15:19:46 +02:00

65 lines
1.5 KiB
C#

using System;
using Robust.Client;
using Robust.Client.Input;
using Robust.Shared.Log;
using Robust.Shared.Timing;
namespace Robust.UnitTesting
{
internal sealed class GameControllerDummy : IGameControllerInternal
{
public InitialLaunchState LaunchState { get; } = new(false, null, null, null);
public GameControllerOptions Options { get; } = new();
public bool ContentStart { get; set; }
public void Shutdown(string? reason = null)
{
}
public void SetCommandLineArgs(CommandLineArgs args)
{
}
public bool LoadConfigAndUserData { get; set; } = true;
public bool Startup(Func<ILogHandler>? logHandlerFactory = null)
{
return true;
}
public void MainLoop(GameController.DisplayMode mode)
{
}
public string? ContentRootDir { get; set; }
public void Run(GameController.DisplayMode mode, GameControllerOptions options, Func<ILogHandler>? logHandlerFactory = null)
{
}
public void KeyDown(KeyEventArgs keyEvent)
{
}
public void KeyUp(KeyEventArgs keyEvent)
{
}
public void TextEntered(TextEventArgs textEvent)
{
}
public void MouseMove(MouseMoveEventArgs mouseMoveEventArgs)
{
}
public void MouseWheel(MouseWheelEventArgs mouseWheelEventArgs)
{
}
public void OverrideMainLoop(IGameLoop gameLoop)
{
}
}
}