quantum-space-buddies/QSB/QSB.cs
Ricardo Lopes f3ec54f75c
Add warp to vessel / insert core debug actions (#82)
* Add warp to vessel / insert core debug actions

* Add debug mode config flag

* Enable in-game switching of debug flag
2020-03-14 21:42:43 +01:00

37 lines
933 B
C#

using OWML.Common;
using OWML.ModHelper;
using QSB.TimeSync;
using UnityEngine;
using UnityEngine.Networking;
namespace QSB
{
public class QSB : ModBehaviour
{
public static IModHelper Helper;
public static string DefaultServerIP;
public static bool DebugMode;
private void Awake()
{
Application.runInBackground = true;
}
private void Start()
{
Helper = ModHelper;
gameObject.AddComponent<DebugLog>();
gameObject.AddComponent<QSBNetworkManager>();
gameObject.AddComponent<NetworkManagerHUD>();
gameObject.AddComponent<DebugActions>();
}
public override void Configure(IModConfig config)
{
DefaultServerIP = config.GetSettingsValue<string>("defaultServerIP");
DebugMode = config.GetSettingsValue<bool>("debugMode");
}
}
}