Ricardo Lopes ba40a229e9
Default server IP (#44)
* Default server IP

* Change default ip to localhost
2020-03-02 17:34:01 +01:00

35 lines
829 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;
private void Awake()
{
Application.runInBackground = true;
}
private void Start()
{
Helper = ModHelper;
gameObject.AddComponent<DebugLog>();
gameObject.AddComponent<QSBNetworkManager>();
gameObject.AddComponent<RespawnOnDeath>();
gameObject.AddComponent<NetworkManagerHUD>();
}
public override void Configure(IModConfig config)
{
DefaultServerIP = config.GetSettingsValue<string>("defaultServerIP");
}
}
}