mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-09 21:59:16 +00:00
f434ed027b
* wrapper for sector * using world registry for sectors * using order id as unique sector key * sector manager * not checking closest sector every frame
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using OWML.Common;
|
|
using OWML.ModHelper;
|
|
using QSB.ElevatorSync;
|
|
using QSB.GeyserSync;
|
|
using QSB.TransformSync;
|
|
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<UnityHelper>();
|
|
gameObject.AddComponent<ElevatorManager>();
|
|
gameObject.AddComponent<GeyserManager>();
|
|
gameObject.AddComponent<QSBSectorManager>();
|
|
}
|
|
|
|
public override void Configure(IModConfig config)
|
|
{
|
|
DefaultServerIP = config.GetSettingsValue<string>("defaultServerIP");
|
|
DebugMode = config.GetSettingsValue<bool>("debugMode");
|
|
}
|
|
}
|
|
}
|