From ba298c74b033f02425b296dc4ef2c3f97ae279a4 Mon Sep 17 00:00:00 2001 From: rodolphito Date: Wed, 27 Mar 2019 05:20:36 -0700 Subject: [PATCH] Style guidelines say these are bad. (#672) --- Assets/Mirror/Runtime/NetworkIdentity.cs | 2 +- Assets/Mirror/Runtime/NetworkServer.cs | 2 +- Assets/Mirror/Runtime/NetworkTime.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkIdentity.cs b/Assets/Mirror/Runtime/NetworkIdentity.cs index 064a8bace..1a8688263 100644 --- a/Assets/Mirror/Runtime/NetworkIdentity.cs +++ b/Assets/Mirror/Runtime/NetworkIdentity.cs @@ -595,7 +595,7 @@ internal byte[] OnSerializeAllSafely(bool initialState) return onSerializeWriter.ToArray(); } - private ulong GetDirtyMask(NetworkBehaviour[] components, bool initialState) + ulong GetDirtyMask(NetworkBehaviour[] components, bool initialState) { // loop through all components only once and then write dirty+payload into the writer afterwards ulong dirtyComponentsMask = 0L; diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index 7acf2cb18..ea8a91a20 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -421,7 +421,7 @@ static void OnDataReceived(int connectionId, byte[] data) } } - private static void OnError(int connectionId, Exception exception) + static void OnError(int connectionId, Exception exception) { // TODO Let's discuss how we will handle errors Debug.LogException(exception); diff --git a/Assets/Mirror/Runtime/NetworkTime.cs b/Assets/Mirror/Runtime/NetworkTime.cs index 4bd35bd11..e8c5f868a 100644 --- a/Assets/Mirror/Runtime/NetworkTime.cs +++ b/Assets/Mirror/Runtime/NetworkTime.cs @@ -28,8 +28,8 @@ static NetworkTime() static ExponentialMovingAverage _offset = new ExponentialMovingAverage(10); // the true offset guaranteed to be in this range - private static double offsetMin = double.MinValue; - private static double offsetMax = double.MaxValue; + static double offsetMin = double.MinValue; + static double offsetMax = double.MaxValue; // returns the clock time _in this system_ static double LocalTime()