mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Style guidelines say these are bad. (#672)
This commit is contained in:
parent
57066a6003
commit
ba298c74b0
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user