Update FishNet
This commit is contained in:
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/AdaptiveInterpolationType.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/AdaptiveLocalTransformSmoother.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Constants.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Extension/Networks.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Extension/Scenes.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Extension/Transforms.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using FishNet.Utility.Extension;
|
||||
using GameKit.Dependencies.Utilities;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine;
|
||||
|
||||
namespace FishNet.Object.Prediction
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/LocalTransformTickSmoother.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Performance/BasicQueue.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Performance/ByteArrayPool.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Performance/DefaultObjectPool.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Performance/ObjectPool.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Performance/ObjectPoolRetrieveOption.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Performance/Transforms.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
|
||||
namespace FishNet.Utility
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Finds the next prime number on or after a value.
|
||||
/// </summary>
|
||||
public static class PrimeNumberFinder
|
||||
{
|
||||
public static uint GetNextPrime(uint number)
|
||||
{
|
||||
uint candidate = number < 2 ? 2 : number;
|
||||
|
||||
while (!IsPrime(candidate))
|
||||
candidate++;
|
||||
|
||||
return candidate;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns if a number is prime.
|
||||
/// </summary>
|
||||
private static bool IsPrime(uint number)
|
||||
{
|
||||
if (number < 2)
|
||||
return false;
|
||||
if (number == 2)
|
||||
return true;
|
||||
if (number % 2 == 0)
|
||||
return false;
|
||||
|
||||
int limit = (int)Math.Sqrt(number);
|
||||
|
||||
for (int i = 3; i <= limit; i += 2)
|
||||
{
|
||||
if (number % i == 0)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e2c327a3a957646499f244ed651a7250
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/PrimeNumberFinder.cs
|
||||
uploadId: 892096
|
||||
@@ -0,0 +1,73 @@
|
||||
// using System.Collections.Generic;
|
||||
//
|
||||
// namespace FishNet.Utility
|
||||
// {
|
||||
// public class SubsetIterator<T>
|
||||
// {
|
||||
// /// <summary>
|
||||
// /// Current iterated index.
|
||||
// /// </summary>
|
||||
// private int _currentIndex = 0;
|
||||
//
|
||||
// /// <summary>
|
||||
// /// Iterates through a specified number of items from the list,
|
||||
// /// starting where the last call left off.
|
||||
// /// </summary>
|
||||
// /// <param name="source">The collection to iterate.</param>
|
||||
// /// <param name="iterations">How many items to process in this call.</param>
|
||||
// /// <returns>An enumerator yielding the subset of items.</returns>
|
||||
// public IEnumerator<T> GetNextSet(List<T> source, int iterations)
|
||||
// {
|
||||
// if (source == null || iterations == 0)
|
||||
// yield break;
|
||||
//
|
||||
// int listCount = source.Count;
|
||||
// if (listCount == 0)
|
||||
// yield break;
|
||||
//
|
||||
// /* If positive then the iterations from the currentIndex
|
||||
// * would exceed the list count. When true remove the over
|
||||
// * count from iterations, and iterate from the beginning using
|
||||
// * the over count value.
|
||||
// *
|
||||
// * Doing this removes the need to check for out of bounds per
|
||||
// * iteration, which scales very well with more iterations. */
|
||||
// int overCountIterations = _currentIndex + iterations - listCount;
|
||||
// if (overCountIterations > 0)
|
||||
// iterations -= overCountIterations;
|
||||
//
|
||||
// for (int i = 0; i < iterations; i++)
|
||||
// {
|
||||
// T item = source[_currentIndex];
|
||||
// _currentIndex++;
|
||||
//
|
||||
// yield return item;
|
||||
// }
|
||||
//
|
||||
// /* If iterations prior had exceeded the source
|
||||
// * count then reset the currentIndex and iterate the
|
||||
// * remainder from the start of the source. */
|
||||
// if (overCountIterations > 0)
|
||||
// {
|
||||
// iterations = overCountIterations;
|
||||
// _currentIndex = 0;
|
||||
//
|
||||
// for (int i = 0; i < iterations; i++)
|
||||
// {
|
||||
// T item = source[_currentIndex];
|
||||
// _currentIndex++;
|
||||
//
|
||||
// yield return item;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// /// <summary>
|
||||
// /// Manually resets the iterator to the beginning of the list.
|
||||
// /// </summary>
|
||||
// public void Reset()
|
||||
// {
|
||||
// _currentIndex = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9054f913fce40b34fb1478f1fe9e62e4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/ProgressiveIterator.cs
|
||||
uploadId: 892096
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/SnappedAxes.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/Template/TickNetworkBehaviour.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
@@ -13,6 +13,6 @@ AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 207815
|
||||
packageName: 'FishNet: Networking Evolved'
|
||||
packageVersion: 4.6.22R
|
||||
packageVersion: 4.7.1R
|
||||
assetPath: Assets/FishNet/Runtime/Utility/TransformTickSmoother.cs
|
||||
uploadId: 866910
|
||||
uploadId: 892096
|
||||
|
||||
Reference in New Issue
Block a user