mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
This is a gigantic kerfuffle because Chromium expects a very specific directory & app bundle layout. Have to change a bunch of resource loading code to account for content development being launched from an app bundle, and also had to make automatic MSBuild tooling & a python script to generate such an app bundle
88 lines
2.0 KiB
C#
88 lines
2.0 KiB
C#
using System;
|
|
using Robust.Client;
|
|
using Robust.Client.Input;
|
|
using Robust.Shared;
|
|
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 StartType StartTypeValue => ContentStart ? StartType.Content : StartType.Engine;
|
|
|
|
public event Action<FrameEventArgs>? TickUpdateOverride { add { } remove { } }
|
|
|
|
public void Shutdown(string? reason = null)
|
|
{
|
|
}
|
|
|
|
public void Redial(string address, 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(TextEnteredEventArgs textEnteredEvent)
|
|
{
|
|
}
|
|
|
|
public void MouseMove(MouseMoveEventArgs mouseMoveEventArgs)
|
|
{
|
|
}
|
|
|
|
public void MouseWheel(MouseWheelEventArgs mouseWheelEventArgs)
|
|
{
|
|
}
|
|
|
|
public void OverrideMainLoop(IGameLoop gameLoop)
|
|
{
|
|
}
|
|
|
|
public string GameTitle()
|
|
{
|
|
return "RobustToolbox";
|
|
}
|
|
|
|
public string WindowIconSet()
|
|
{
|
|
return "";
|
|
}
|
|
|
|
public string SplashLogo()
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
}
|