mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 03:40:46 +00:00
465074b176
* fixed transformsync errors
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using OWML.Common;
|
|
using OWML.ModHelper;
|
|
using QSB.Events;
|
|
using QSB.Utility;
|
|
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>();
|
|
gameObject.AddComponent<EventListener>();
|
|
gameObject.AddComponent<FullStateRequest>();
|
|
}
|
|
|
|
public override void Configure(IModConfig config)
|
|
{
|
|
DefaultServerIP = config.GetSettingsValue<string>("defaultServerIP");
|
|
DebugMode = config.GetSettingsValue<bool>("debugMode");
|
|
}
|
|
}
|
|
}
|