quantum-space-buddies/QSB/QSB.cs

42 lines
1.1 KiB
C#
Raw Normal View History

2020-02-10 22:03:28 +00:00
using OWML.Common;
using OWML.ModHelper;
2020-08-12 19:58:29 +00:00
using QSB.ElevatorSync;
2020-08-13 13:32:58 +00:00
using QSB.GeyserSync;
using QSB.Utility;
2020-02-10 22:03:28 +00:00
using UnityEngine;
using UnityEngine.Networking;
2020-02-15 19:48:02 +00:00
namespace QSB
{
public class QSB : ModBehaviour
{
public static IModHelper Helper;
public static string DefaultServerIP;
public static bool DebugMode;
2020-02-10 22:03:28 +00:00
2020-02-15 19:48:02 +00:00
private void Awake()
{
2020-02-10 22:03:28 +00:00
Application.runInBackground = true;
}
2020-02-15 19:48:02 +00:00
private void Start()
{
Helper = ModHelper;
2020-02-10 22:03:28 +00:00
gameObject.AddComponent<DebugLog>();
gameObject.AddComponent<QSBNetworkManager>();
gameObject.AddComponent<NetworkManagerHUD>();
gameObject.AddComponent<DebugActions>();
2020-08-09 07:17:00 +00:00
gameObject.AddComponent<UnityHelper>();
gameObject.AddComponent<ElevatorManager>();
2020-08-13 17:25:12 +00:00
gameObject.AddComponent<GeyserManager>();
}
public override void Configure(IModConfig config)
{
DefaultServerIP = config.GetSettingsValue<string>("defaultServerIP");
DebugMode = config.GetSettingsValue<bool>("debugMode");
2020-02-10 22:03:28 +00:00
}
}
}