mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-19 12:40:56 +00:00
update QSBNetworkManager
This commit is contained in:
parent
6e8c052ca8
commit
0a6b56179e
@ -21,7 +21,7 @@ namespace EpicTransport {
|
||||
// Unity Inspector shown variables
|
||||
|
||||
[SerializeField]
|
||||
private EosApiKey apiKeys;
|
||||
public EosApiKey apiKeys;
|
||||
|
||||
[Header("User Login")]
|
||||
public bool authInterfaceLogin = false;
|
||||
@ -132,7 +132,7 @@ namespace EpicTransport {
|
||||
}
|
||||
|
||||
protected static EOSSDKComponent instance;
|
||||
protected static EOSSDKComponent Instance {
|
||||
public static EOSSDKComponent Instance {
|
||||
get {
|
||||
if (instance == null) {
|
||||
return new GameObject("EOSSDKComponent").AddComponent<EOSSDKComponent>();
|
||||
|
@ -1,5 +1,5 @@
|
||||
using Mirror;
|
||||
using Mirror.FizzySteam;
|
||||
using EpicTransport;
|
||||
using Mirror;
|
||||
using OWML.Common;
|
||||
using OWML.Utils;
|
||||
using QSB.Anglerfish.TransformSync;
|
||||
@ -65,12 +65,21 @@ namespace QSB
|
||||
}
|
||||
else
|
||||
{
|
||||
var fizzy = gameObject.AddComponent<FizzyFacepunch>();
|
||||
fizzy.SteamAppID = QSBCore.DebugSettings.OverrideAppId == -1
|
||||
? _defaultSteamAppID.ToString()
|
||||
: QSBCore.DebugSettings.OverrideAppId.ToString();
|
||||
fizzy.SetTransportError = error => _lastTransportError = error;
|
||||
transport = fizzy;
|
||||
var eosTransport = gameObject.AddComponent<EosTransport>();
|
||||
EOSSDKComponent.Instance.apiKeys = new EosApiKey
|
||||
{
|
||||
name = null,
|
||||
hideFlags = HideFlags.None,
|
||||
epicProductName = null,
|
||||
epicProductVersion = null,
|
||||
epicProductId = null,
|
||||
epicSandboxId = null,
|
||||
epicDeploymentId = null,
|
||||
epicClientId = null,
|
||||
epicClientSecret = null
|
||||
}; // todo
|
||||
// todo eosTransport.SetTransportError = error => _lastTransportError = error;
|
||||
transport = eosTransport;
|
||||
}
|
||||
|
||||
gameObject.SetActive(true);
|
||||
|
@ -7,9 +7,6 @@ namespace QSB.Utility
|
||||
[JsonProperty("useKcpTransport")]
|
||||
public bool UseKcpTransport;
|
||||
|
||||
[JsonProperty("overrideAppId")]
|
||||
public int OverrideAppId = -1;
|
||||
|
||||
[JsonProperty("dumpWorldObjects")]
|
||||
public bool DumpWorldObjects;
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"useKcpTransport": false,
|
||||
"overrideAppId": -1,
|
||||
"dumpWorldObjects": false,
|
||||
"playerIdInLogs": false,
|
||||
"debugMode": false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user