update QSBNetworkManager

This commit is contained in:
JohnCorby 2022-02-05 19:01:53 -08:00
parent 6e8c052ca8
commit 0a6b56179e
4 changed files with 19 additions and 14 deletions

View File

@ -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>();

View File

@ -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);

View File

@ -7,9 +7,6 @@ namespace QSB.Utility
[JsonProperty("useKcpTransport")]
public bool UseKcpTransport;
[JsonProperty("overrideAppId")]
public int OverrideAppId = -1;
[JsonProperty("dumpWorldObjects")]
public bool DumpWorldObjects;

View File

@ -1,6 +1,5 @@
{
"useKcpTransport": false,
"overrideAppId": -1,
"dumpWorldObjects": false,
"playerIdInLogs": false,
"debugMode": false,