From f77583c5e460d34689d7f421564169f627f61108 Mon Sep 17 00:00:00 2001 From: MrGadget1024 Date: Fri, 28 May 2021 03:38:42 -0400 Subject: [PATCH] Changed all deprecation dates to ISO format --- Assets/Mirror/Components/NetworkProximityChecker.cs | 2 +- Assets/Mirror/Runtime/Messages.cs | 4 ++-- Assets/Mirror/Runtime/NetworkAuthenticator.cs | 9 ++++++--- Assets/Mirror/Runtime/NetworkClient.cs | 2 +- Assets/Mirror/Runtime/NetworkManager.cs | 2 +- Assets/Mirror/Runtime/SyncList.cs | 10 +++++----- 6 files changed, 16 insertions(+), 13 deletions(-) diff --git a/Assets/Mirror/Components/NetworkProximityChecker.cs b/Assets/Mirror/Components/NetworkProximityChecker.cs index d3849fee5..b83c80f97 100644 --- a/Assets/Mirror/Components/NetworkProximityChecker.cs +++ b/Assets/Mirror/Components/NetworkProximityChecker.cs @@ -30,7 +30,7 @@ public class NetworkProximityChecker : NetworkVisibility /// Flag to force this object to be hidden for players. /// If this object is a player object, it will not be hidden for that player. /// - // Deprecated 02/17/2021 + // Deprecated 2021-02-17 [Obsolete("Use NetworkIdentity.visible mode instead of forceHidden!")] public bool forceHidden { diff --git a/Assets/Mirror/Runtime/Messages.cs b/Assets/Mirror/Runtime/Messages.cs index 4d2f80cae..eb3cbefd1 100644 --- a/Assets/Mirror/Runtime/Messages.cs +++ b/Assets/Mirror/Runtime/Messages.cs @@ -3,11 +3,11 @@ namespace Mirror { - // Deprecated 10/06/2020 + // Deprecated 2020-10-06 [Obsolete("Implement NetworkMessage instead. Use extension methods instead of Serialize/Deserialize, see https://github.com/vis2k/Mirror/pull/2317", true)] public interface IMessageBase {} - // Deprecated 10/06/2020 + // Deprecated 2020-10-06 [Obsolete("Implement NetworkMessage instead. Use extension methods instead of Serialize/Deserialize, see https://github.com/vis2k/Mirror/pull/2317", true)] public class MessageBase : IMessageBase {} diff --git a/Assets/Mirror/Runtime/NetworkAuthenticator.cs b/Assets/Mirror/Runtime/NetworkAuthenticator.cs index e5f360a44..e980a8911 100644 --- a/Assets/Mirror/Runtime/NetworkAuthenticator.cs +++ b/Assets/Mirror/Runtime/NetworkAuthenticator.cs @@ -44,13 +44,15 @@ public virtual void OnStartClient() {} /// Called when client stops, used to unregister message handlers if needed. public virtual void OnStopClient() {} - [Obsolete("Deprecated: Remove the NetworkConnection parameter from your override and use NetworkClient.connection instead")] + // Deprecated 2021-03-13 + [Obsolete("Remove the NetworkConnection parameter from your override and use NetworkClient.connection instead")] public virtual void OnClientAuthenticate(NetworkConnection conn) => OnClientAuthenticate(); /// Called on client from OnClientAuthenticateInternal when a client needs to authenticate public abstract void OnClientAuthenticate(); - [Obsolete("Deprecated: Remove the NetworkConnection parameter from your override and use NetworkClient.connection instead")] + // Deprecated 2021-03-13 + [Obsolete("Remove the NetworkConnection parameter from your override and use NetworkClient.connection instead")] protected void ClientAccept(NetworkConnection conn) => ClientAccept(); protected void ClientAccept() @@ -58,7 +60,8 @@ protected void ClientAccept() OnClientAuthenticated.Invoke(NetworkClient.connection); } - [Obsolete("Deprecated: Remove the NetworkConnection parameter from your override and use NetworkClient.connection instead")] + // Deprecated 2021-03-13 + [Obsolete("Remove the NetworkConnection parameter from your override and use NetworkClient.connection instead")] protected void ClientReject(NetworkConnection conn) => ClientReject(); protected void ClientReject() diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index 14914b749..f95bb8bb6 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -59,7 +59,7 @@ public static class NetworkClient /// True if client is running in host mode. public static bool isHostClient => connection is LocalConnectionToServer; - // DEPRECATED 2021-05-26 + // Deprecated 2021-05-26 [Obsolete("isLocalClient was renamed to isHostClient because that's what it actually means.")] public static bool isLocalClient => isHostClient; diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index d57dc27b8..a6ded3f64 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -23,7 +23,7 @@ public class NetworkManager : MonoBehaviour [Tooltip("Should the Network Manager object be persisted through scene changes?")] public bool dontDestroyOnLoad = true; - // Deprecated 3/10/2021 + // Deprecated 2021-03-10 // Temporary bool to allow Network Manager to persist to offline scene // Based on Discord convo, BigBox is invoking StopHost in startup sequence, bouncing the server and clients back to offline scene, which resets Network Manager. // Request is for a checkbox to persist Network Manager to offline scene, despite the collision and warning. diff --git a/Assets/Mirror/Runtime/SyncList.cs b/Assets/Mirror/Runtime/SyncList.cs index deba7ebb4..1ac230e18 100644 --- a/Assets/Mirror/Runtime/SyncList.cs +++ b/Assets/Mirror/Runtime/SyncList.cs @@ -4,23 +4,23 @@ namespace Mirror { - // Deprecated 10/02/2020 + // Deprecated 2020-10-02 [Obsolete("Use SyncList instead")] public class SyncListString : SyncList {} - // Deprecated 10/02/2020 + // Deprecated 2020-10-02 [Obsolete("Use SyncList instead")] public class SyncListFloat : SyncList {} - // Deprecated 10/02/2020 + // Deprecated 2020-10-02 [Obsolete("Use SyncList instead")] public class SyncListInt : SyncList {} - // Deprecated 10/02/2020 + // Deprecated 2020-10-02 [Obsolete("Use SyncList instead")] public class SyncListUInt : SyncList {} - // Deprecated 10/02/2020 + // Deprecated 2020-10-02 [Obsolete("Use SyncList instead")] public class SyncListBool : SyncList {}