From 8996783c131073dde009c7ba85727cb6e5719b32 Mon Sep 17 00:00:00 2001 From: ReMake <32996203+MarcinZboralski@users.noreply.github.com> Date: Fri, 27 Dec 2024 23:55:28 +0100 Subject: [PATCH 1/3] Legacy removed --- com.mirror.steamworks.net/FizzySteamworks.cs | 68 +----- com.mirror.steamworks.net/LegacyClient.cs | 185 ---------------- .../LegacyClient.cs.meta | 11 - com.mirror.steamworks.net/LegacyCommon.cs | 204 ------------------ .../LegacyCommon.cs.meta | 11 - com.mirror.steamworks.net/LegacyServer.cs | 189 ---------------- .../LegacyServer.cs.meta | 11 - 7 files changed, 7 insertions(+), 672 deletions(-) delete mode 100644 com.mirror.steamworks.net/LegacyClient.cs delete mode 100644 com.mirror.steamworks.net/LegacyClient.cs.meta delete mode 100644 com.mirror.steamworks.net/LegacyCommon.cs delete mode 100644 com.mirror.steamworks.net/LegacyCommon.cs.meta delete mode 100644 com.mirror.steamworks.net/LegacyServer.cs delete mode 100644 com.mirror.steamworks.net/LegacyServer.cs.meta diff --git a/com.mirror.steamworks.net/FizzySteamworks.cs b/com.mirror.steamworks.net/FizzySteamworks.cs index 50ae7d5..ee245f8 100644 --- a/com.mirror.steamworks.net/FizzySteamworks.cs +++ b/com.mirror.steamworks.net/FizzySteamworks.cs @@ -13,20 +13,15 @@ public class FizzySteamworks : Transport private static IClient client; private static IServer server; - [SerializeField] - public EP2PSend[] Channels = new EP2PSend[2] { EP2PSend.k_EP2PSendReliable, EP2PSend.k_EP2PSendUnreliableNoDelay }; [Tooltip("Timeout for connecting in seconds.")] public int Timeout = 25; [Tooltip("Allow or disallow P2P connections to fall back to being relayed through the Steam servers if a direct connection or NAT-traversal cannot be established.")] public bool AllowSteamRelay = true; - [Tooltip("Use SteamSockets instead of the (deprecated) SteamNetworking. This will always use Relay.")] - public bool UseNextGenSteamNetworking = true; private void OnEnable() { - Debug.Assert(Channels != null && Channels.Length > 0, "No channel configured for FizzySteamworks."); Invoke(nameof(InitRelayNetworkAccess), 1f); } @@ -83,17 +78,8 @@ public override void ClientConnect(string address) if (!ClientActive() || client.Error) { - if (UseNextGenSteamNetworking) - { - Debug.Log($"Starting client [SteamSockets], target address {address}."); - client = NextClient.CreateClient(this, address); - } - else - { - Debug.Log($"Starting client [DEPRECATED SteamNetworking], target address {address}. Relay enabled: {AllowSteamRelay}"); - SteamNetworking.AllowP2PPacketRelay(AllowSteamRelay); - client = LegacyClient.CreateClient(this, address); - } + Debug.Log($"Starting client [SteamSockets], target address {address}."); + client = NextClient.CreateClient(this, address); } else { @@ -154,22 +140,8 @@ public override void ServerStart() if (!ServerActive()) { - if (UseNextGenSteamNetworking) - { - Debug.Log($"Starting server [SteamSockets]."); - server = NextServer.CreateServer(this, NetworkManager.singleton.maxConnections); - } - else - { - Debug.Log($"Starting server [DEPRECATED SteamNetworking]. Relay enabled: {AllowSteamRelay}"); -#if UNITY_SERVER - SteamGameServerNetworking.AllowP2PPacketRelay(AllowSteamRelay); -#else - - SteamNetworking.AllowP2PPacketRelay(AllowSteamRelay); -#endif - server = LegacyServer.CreateServer(this, NetworkManager.singleton.maxConnections); - } + Debug.Log($"Starting server [SteamSockets]."); + server = NextServer.CreateServer(this, NetworkManager.singleton.maxConnections); } else { @@ -243,30 +215,7 @@ public override void Shutdown() public override int GetMaxPacketSize(int channelId) { - if (UseNextGenSteamNetworking) - { - return Constants.k_cbMaxSteamNetworkingSocketsMessageSizeSend; - } - else - { - if (channelId >= Channels.Length) - { - Debug.LogError("Channel Id exceeded configured channels! Please configure more channels."); - return 1200; - } - - switch (Channels[channelId]) - { - case EP2PSend.k_EP2PSendUnreliable: - case EP2PSend.k_EP2PSendUnreliableNoDelay: - return 1200; - case EP2PSend.k_EP2PSendReliable: - case EP2PSend.k_EP2PSendReliableWithBuffering: - return 1048576; - default: - throw new NotSupportedException(); - } - } + return Constants.k_cbMaxSteamNetworkingSocketsMessageSizeSend; } public override bool Available() @@ -290,14 +239,11 @@ private void InitRelayNetworkAccess() { try { - if (UseNextGenSteamNetworking) - { #if UNITY_SERVER - SteamGameServerNetworkingUtils.InitRelayNetworkAccess(); + SteamGameServerNetworkingUtils.InitRelayNetworkAccess(); #else - SteamNetworkingUtils.InitRelayNetworkAccess(); + SteamNetworkingUtils.InitRelayNetworkAccess(); #endif - } } catch (Exception ex) { diff --git a/com.mirror.steamworks.net/LegacyClient.cs b/com.mirror.steamworks.net/LegacyClient.cs deleted file mode 100644 index a68e821..0000000 --- a/com.mirror.steamworks.net/LegacyClient.cs +++ /dev/null @@ -1,185 +0,0 @@ -#if !DISABLESTEAMWORKS -using Steamworks; -using System; -using System.Threading; -using System.Threading.Tasks; -using UnityEngine; - -namespace Mirror.FizzySteam -{ - public class LegacyClient : LegacyCommon, IClient - { - public bool Connected { get; private set; } - public bool Error { get; private set; } - - private event Action OnReceivedData; - private event Action OnConnected; - private event Action OnDisconnected; - - private TimeSpan ConnectionTimeout; - - private CSteamID hostSteamID = CSteamID.Nil; - private TaskCompletionSource connectedComplete; - private CancellationTokenSource cancelToken; - - private LegacyClient(FizzySteamworks transport) : base(transport) - { - ConnectionTimeout = TimeSpan.FromSeconds(Math.Max(1, transport.Timeout)); - } - - public static LegacyClient CreateClient(FizzySteamworks transport, string host) - { - LegacyClient c = new LegacyClient(transport); - - c.OnConnected += () => transport.OnClientConnected.Invoke(); - c.OnDisconnected += () => transport.OnClientDisconnected.Invoke(); - c.OnReceivedData += (data, channel) => transport.OnClientDataReceived.Invoke(new ArraySegment(data), channel); - - - try - { -#if UNITY_SERVER - InteropHelp.TestIfAvailableGameServer(); -#else - InteropHelp.TestIfAvailableClient(); -#endif - c.Connect(host); - } - catch(FormatException) - { - Debug.LogError($"Connection string was not in the right format. Did you enter a SteamId?"); - c.Error = true; - c.OnConnectionFailed(CSteamID.Nil); - } - catch(Exception ex) - { - Debug.LogError($"Unexpected exception: {ex.Message}"); - c.Error = true; - c.OnConnectionFailed(CSteamID.Nil); - } - - return c; - } - - private async void Connect(string host) - { - cancelToken = new CancellationTokenSource(); - - try - { - hostSteamID = new CSteamID(UInt64.Parse(host)); - connectedComplete = new TaskCompletionSource(); - - OnConnected += SetConnectedComplete; - - SendInternal(hostSteamID, InternalMessages.CONNECT); - - Task connectedCompleteTask = connectedComplete.Task; - Task timeOutTask = Task.Delay(ConnectionTimeout, cancelToken.Token); - - if (await Task.WhenAny(connectedCompleteTask, timeOutTask) != connectedCompleteTask) - { - if (cancelToken.IsCancellationRequested) - { - Debug.LogError($"The connection attempt was cancelled."); - } - else if (timeOutTask.IsCompleted) - { - Debug.LogError($"Connection to {host} timed out."); - } - OnConnected -= SetConnectedComplete; - OnConnectionFailed(hostSteamID); - } - - OnConnected -= SetConnectedComplete; - } - catch (FormatException) - { - Debug.LogError($"Connection string was not in the right format. Did you enter a SteamId?"); - Error = true; - OnConnectionFailed(hostSteamID); - } - catch (Exception ex) - { - Debug.LogError($"Unexpected exception: {ex.Message}"); - Error = true; - OnConnectionFailed(hostSteamID); - } - finally - { - if (Error) - { - Debug.LogError("Connection failed."); - OnConnectionFailed(CSteamID.Nil); - } - } - } - - public void Disconnect() - { - Debug.Log("Sending Disconnect message"); - SendInternal(hostSteamID, InternalMessages.DISCONNECT); - Dispose(); - cancelToken?.Cancel(); - - WaitForClose(hostSteamID); - } - - private void SetConnectedComplete() => connectedComplete.SetResult(connectedComplete.Task); - - protected override void OnReceiveData(byte[] data, CSteamID clientSteamID, int channel) - { - if (clientSteamID != hostSteamID) - { - Debug.LogError("Received a message from an unknown"); - return; - } - - OnReceivedData.Invoke(data, channel); - } - - protected override void OnNewConnection(P2PSessionRequest_t result) - { - if (hostSteamID == result.m_steamIDRemote) - { - SteamNetworking.AcceptP2PSessionWithUser(result.m_steamIDRemote); - } - else - { - Debug.LogError("P2P Acceptance Request from unknown host ID."); - } - } - - protected override void OnReceiveInternalData(InternalMessages type, CSteamID clientSteamID) - { - switch (type) - { - case InternalMessages.ACCEPT_CONNECT: - if (!Connected) - { - Connected = true; - OnConnected.Invoke(); - Debug.Log("Connection established."); - } - break; - case InternalMessages.DISCONNECT: - if (Connected) - { - Connected = false; - Debug.Log("Disconnected."); - OnDisconnected.Invoke(); - } - break; - default: - Debug.Log("Received unknown message type"); - break; - } - } - - public void Send(byte[] data, int channelId) => Send(hostSteamID, data, channelId); - - protected override void OnConnectionFailed(CSteamID remoteId) => OnDisconnected.Invoke(); - public void FlushData() { } - } -} -#endif // !DISABLESTEAMWORKS \ No newline at end of file diff --git a/com.mirror.steamworks.net/LegacyClient.cs.meta b/com.mirror.steamworks.net/LegacyClient.cs.meta deleted file mode 100644 index 3a4bae5..0000000 --- a/com.mirror.steamworks.net/LegacyClient.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 862fc5e604ebaa0438662870d4a14e43 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.mirror.steamworks.net/LegacyCommon.cs b/com.mirror.steamworks.net/LegacyCommon.cs deleted file mode 100644 index 3536efa..0000000 --- a/com.mirror.steamworks.net/LegacyCommon.cs +++ /dev/null @@ -1,204 +0,0 @@ -#if !DISABLESTEAMWORKS -using Steamworks; -using System; -using System.Collections; -using UnityEngine; - -namespace Mirror.FizzySteam -{ - public abstract class LegacyCommon - { - private LegacyClient legacyClient => (LegacyClient)this; - - private EP2PSend[] channels; - private int internal_ch => channels.Length; - - protected enum InternalMessages : byte - { - CONNECT, - ACCEPT_CONNECT, - DISCONNECT - } - - private Callback callback_OnNewConnection = null; - private Callback callback_OnConnectFail = null; - - protected readonly FizzySteamworks transport; - - protected LegacyCommon(FizzySteamworks transport) - { - channels = transport.Channels; - - callback_OnNewConnection = Callback.Create(OnNewConnection); - callback_OnConnectFail = Callback.Create(OnConnectFail); - - this.transport = transport; - } - - protected void Dispose() - { - if (callback_OnNewConnection != null) - { - callback_OnNewConnection.Dispose(); - callback_OnNewConnection = null; - } - - if (callback_OnConnectFail != null) - { - callback_OnConnectFail.Dispose(); - callback_OnConnectFail = null; - } - } - - protected abstract void OnNewConnection(P2PSessionRequest_t result); - - private void OnConnectFail(P2PSessionConnectFail_t result) - { - OnConnectionFailed(result.m_steamIDRemote); - CloseP2PSessionWithUser(result.m_steamIDRemote); - - switch (result.m_eP2PSessionError) - { - case 1: - Debug.LogError("Connection failed: The target user is not running the same game."); - break; - case 2: - Debug.LogError("Connection failed: The local user doesn't own the app that is running."); - break; - case 3: - Debug.LogError("Connection failed: Target user isn't connected to Steam."); - break; - case 4: - Debug.LogError("Connection failed: The connection timed out because the target user didn't respond."); - break; - default: - Debug.LogError("Connection failed: Unknown error."); - break; - } - } - - protected void SendInternal(CSteamID target, InternalMessages type) - { -#if UNITY_SERVER - SteamGameServerNetworking.SendP2PPacket(target, new byte[] { (byte)type }, 1, EP2PSend.k_EP2PSendReliable, internal_ch); -#else - SteamNetworking.SendP2PPacket(target, new byte[] { (byte)type }, 1, EP2PSend.k_EP2PSendReliable, internal_ch); -#endif - } - protected void Send(CSteamID host, byte[] msgBuffer, int channel) - { - try - { -#if UNITY_SERVER - SteamGameServerNetworking.SendP2PPacket(host, msgBuffer, (uint)msgBuffer.Length, channels[Mathf.Min(channel, channels.Length - 1)], channel); -#else - SteamNetworking.SendP2PPacket(host, msgBuffer, (uint)msgBuffer.Length, channels[Mathf.Min(channel, channels.Length - 1)], channel); -#endif - } - catch (Exception ex) - { - Debug.LogError($"SteamNetworking exception during Send: {ex.Message}"); - legacyClient.Disconnect(); - } - } - - private bool Receive(out CSteamID clientSteamID, out byte[] receiveBuffer, int channel) - { - try - { -#if UNITY_SERVER - if (SteamGameServerNetworking.IsP2PPacketAvailable(out uint packetSize, channel)) - { - receiveBuffer = new byte[packetSize]; - return SteamGameServerNetworking.ReadP2PPacket(receiveBuffer, packetSize, out _, out clientSteamID, channel); - } -#else - if (SteamNetworking.IsP2PPacketAvailable(out uint packetSize, channel)) - { - receiveBuffer = new byte[packetSize]; - return SteamNetworking.ReadP2PPacket(receiveBuffer, packetSize, out _, out clientSteamID, channel); - } -#endif - } - catch (Exception ex) - { - Debug.LogError($"SteamNetworking exception during Recive: {ex.Message}"); - receiveBuffer = null; - clientSteamID = CSteamID.Nil; - - legacyClient.Disconnect(); - return false; - } - - - receiveBuffer = null; - clientSteamID = CSteamID.Nil; - return false; - } - - protected void CloseP2PSessionWithUser(CSteamID clientSteamID) - { -#if UNITY_SERVER - SteamGameServerNetworking.CloseP2PSessionWithUser(clientSteamID); -#else - SteamNetworking.CloseP2PSessionWithUser(clientSteamID); -#endif - } - - protected void WaitForClose(CSteamID cSteamID) - { - if (transport.enabled) - { - transport.StartCoroutine(DelayedClose(cSteamID)); - } - else - { - CloseP2PSessionWithUser(cSteamID); - } - } - - private IEnumerator DelayedClose(CSteamID cSteamID) - { - yield return null; - CloseP2PSessionWithUser(cSteamID); - } - - public void ReceiveData() - { - try - { - while (transport.enabled && Receive(out CSteamID clientSteamID, out byte[] internalMessage, internal_ch)) - { - if (internalMessage.Length == 1) - { - OnReceiveInternalData((InternalMessages)internalMessage[0], clientSteamID); - return; // Wait one frame - } - else - { - Debug.Log("Incorrect package length on internal channel."); - } - } - - for (int chNum = 0; chNum < channels.Length; chNum++) - { - while (transport.enabled && Receive(out CSteamID clientSteamID, out byte[] receiveBuffer, chNum)) - { - OnReceiveData(receiveBuffer, clientSteamID, chNum); - } - } - - } - catch (Exception e) - { - Debug.LogException(e); - legacyClient.Disconnect(); - } - } - - protected abstract void OnReceiveInternalData(InternalMessages type, CSteamID clientSteamID); - protected abstract void OnReceiveData(byte[] data, CSteamID clientSteamID, int channel); - protected abstract void OnConnectionFailed(CSteamID remoteId); - } -} -#endif // !DISABLESTEAMWORKS \ No newline at end of file diff --git a/com.mirror.steamworks.net/LegacyCommon.cs.meta b/com.mirror.steamworks.net/LegacyCommon.cs.meta deleted file mode 100644 index 314faf9..0000000 --- a/com.mirror.steamworks.net/LegacyCommon.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 805bd7b4762d722499a9f229c905a8d9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/com.mirror.steamworks.net/LegacyServer.cs b/com.mirror.steamworks.net/LegacyServer.cs deleted file mode 100644 index 485caf8..0000000 --- a/com.mirror.steamworks.net/LegacyServer.cs +++ /dev/null @@ -1,189 +0,0 @@ -#if !DISABLESTEAMWORKS -using Steamworks; -using System; -using System.Collections.Generic; -using UnityEngine; - -namespace Mirror.FizzySteam -{ - public class LegacyServer : LegacyCommon, IServer - { - private event Action OnConnectedWithAddress; - private event Action OnReceivedData; - private event Action OnDisconnected; - private event Action OnReceivedError; - - private BidirectionalDictionary steamToMirrorIds; - private int maxConnections; - private int nextConnectionID; - - private static LegacyServer server; - - public static LegacyServer CreateServer(FizzySteamworks transport, int maxConnections) - { - server = new LegacyServer(transport, maxConnections); - - server.OnConnectedWithAddress += (id,addres) => transport.OnServerConnectedWithAddress.Invoke(id,addres); - server.OnDisconnected += (id) => transport.OnServerDisconnected.Invoke(id); - server.OnReceivedData += (id, data, channel) => transport.OnServerDataReceived.Invoke(id, new ArraySegment(data), channel); - server.OnReceivedError += (id, error, reason) => transport.OnServerError.Invoke(id, error, reason); - - try - { -#if UNITY_SERVER - InteropHelp.TestIfAvailableGameServer(); -#else - InteropHelp.TestIfAvailableClient(); -#endif - } - catch - { - Debug.LogError("SteamWorks not initialized."); - } - - return server; - } - - private LegacyServer(FizzySteamworks transport, int maxConnections) : base(transport) - { - this.maxConnections = maxConnections; - steamToMirrorIds = new BidirectionalDictionary(); - nextConnectionID = 1; - } - - protected override void OnNewConnection(P2PSessionRequest_t result) - { - try - { -#if UNITY_SERVER - SteamGameServerNetworking.AcceptP2PSessionWithUser(result.m_steamIDRemote); -#else - SteamNetworking.AcceptP2PSessionWithUser(result.m_steamIDRemote); -#endif - } - catch (Exception ex) - { - Debug.LogError($"Steam Server error durring new connect, {ex.Message}"); - Shutdown(); - } - } - - protected override void OnReceiveInternalData(InternalMessages type, CSteamID clientSteamID) - { - switch (type) - { - case InternalMessages.CONNECT: - if (steamToMirrorIds.Count >= maxConnections) - { - SendInternal(clientSteamID, InternalMessages.DISCONNECT); - return; - } - - SendInternal(clientSteamID, InternalMessages.ACCEPT_CONNECT); - - int connectionId = nextConnectionID++; - steamToMirrorIds.Add(clientSteamID, connectionId); - OnConnectedWithAddress.Invoke(connectionId,server.ServerGetClientAddress(connectionId)); - Debug.Log($"Client with SteamID {clientSteamID} connected. Assigning connection id {connectionId}"); - break; - case InternalMessages.DISCONNECT: - if (steamToMirrorIds.TryGetValue(clientSteamID, out int connId)) - { - OnDisconnected.Invoke(connId); - CloseP2PSessionWithUser(clientSteamID); - steamToMirrorIds.Remove(clientSteamID); - Debug.Log($"Client with SteamID {clientSteamID} disconnected."); - } - - break; - default: - Debug.Log("Received unknown message type"); - break; - } - } - - protected override void OnReceiveData(byte[] data, CSteamID clientSteamID, int channel) - { - try - { - if (steamToMirrorIds.TryGetValue(clientSteamID, out int connectionId)) - { - OnReceivedData.Invoke(connectionId, data, channel); - } - else - { - CloseP2PSessionWithUser(clientSteamID); - Debug.LogError("Data received from steam client thats not known " + clientSteamID); - OnReceivedError.Invoke(-1, TransportError.DnsResolve, "ERROR Unknown SteamID"); - } - } - catch (Exception ex) - { - Debug.LogError($"Error while recive data {ex.Message}"); - Shutdown(); - } - } - - public void Disconnect(int connectionId) - { - if (steamToMirrorIds.TryGetValue(connectionId, out CSteamID steamID)) - { - SendInternal(steamID, InternalMessages.DISCONNECT); - steamToMirrorIds.Remove(connectionId); - } - else - { - Debug.LogWarning("Trying to disconnect unknown connection id: " + connectionId); - } - } - - public void Shutdown() - { - foreach (KeyValuePair client in steamToMirrorIds) - { - Disconnect(client.Value); - WaitForClose(client.Key); - } - - Dispose(); - } - - public void Send(int connectionId, byte[] data, int channelId) - { - if (steamToMirrorIds.TryGetValue(connectionId, out CSteamID steamId)) - { - Send(steamId, data, channelId); - } - else - { - Debug.LogError("Trying to send on unknown connection: " + connectionId); - OnReceivedError.Invoke(connectionId, TransportError.Unexpected, "ERROR Unknown Connection"); - Shutdown(); - } - } - - public string ServerGetClientAddress(int connectionId) - { - if (steamToMirrorIds.TryGetValue(connectionId, out CSteamID steamId)) - { - return steamId.ToString(); - } - else - { - Debug.LogError("Trying to get info on unknown connection: " + connectionId); - OnReceivedError.Invoke(connectionId, TransportError.Unexpected, "ERROR Unknown Connection"); - return string.Empty; - } - } - - protected override void OnConnectionFailed(CSteamID remoteId) - { - int connectionId = steamToMirrorIds.TryGetValue(remoteId, out int connId) ? connId : nextConnectionID++; - OnDisconnected.Invoke(connectionId); - - steamToMirrorIds.Remove(remoteId); - } - public void FlushData() { } - } -} -#endif // !DISABLESTEAMWORKS \ No newline at end of file diff --git a/com.mirror.steamworks.net/LegacyServer.cs.meta b/com.mirror.steamworks.net/LegacyServer.cs.meta deleted file mode 100644 index 341a6e9..0000000 --- a/com.mirror.steamworks.net/LegacyServer.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: f6b4fdab451e8c647b7e26d8c4d934f9 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: From f8f81c9aedae0d589157038be3050389571fb0f1 Mon Sep 17 00:00:00 2001 From: ReMake <32996203+MarcinZboralski@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:03:06 +0100 Subject: [PATCH 2/3] Update FizzySteamworks.cs --- com.mirror.steamworks.net/FizzySteamworks.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/com.mirror.steamworks.net/FizzySteamworks.cs b/com.mirror.steamworks.net/FizzySteamworks.cs index ee245f8..6f3c32b 100644 --- a/com.mirror.steamworks.net/FizzySteamworks.cs +++ b/com.mirror.steamworks.net/FizzySteamworks.cs @@ -13,12 +13,8 @@ public class FizzySteamworks : Transport private static IClient client; private static IServer server; - [Tooltip("Timeout for connecting in seconds.")] public int Timeout = 25; - [Tooltip("Allow or disallow P2P connections to fall back to being relayed through the Steam servers if a direct connection or NAT-traversal cannot be established.")] - public bool AllowSteamRelay = true; - private void OnEnable() { From ccae5ef54fab7ed618b736312815b4aa58770f2b Mon Sep 17 00:00:00 2001 From: ReMake <32996203+MarcinZboralski@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:42:46 +0100 Subject: [PATCH 3/3] 6.1.0 updated version --- com.mirror.steamworks.net/package.json | 2 +- com.mirror.steamworks.net/version.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/com.mirror.steamworks.net/package.json b/com.mirror.steamworks.net/package.json index 02a8190..c29f400 100644 --- a/com.mirror.steamworks.net/package.json +++ b/com.mirror.steamworks.net/package.json @@ -1,7 +1,7 @@ { "name": "com.mirror.steamworks.net", "displayName": "FizzySteamworks", - "version": "6.0.1", + "version": "6.1.0", "unity": "2019.4", "author": { "name": "Mirror Community", diff --git a/com.mirror.steamworks.net/version.txt b/com.mirror.steamworks.net/version.txt index 6e2a0d0..b3ec028 100644 --- a/com.mirror.steamworks.net/version.txt +++ b/com.mirror.steamworks.net/version.txt @@ -1 +1 @@ -6.0.1 +6.1.0