Add StickGame Assets

This commit is contained in:
Dzejkobik007
2024-03-24 22:21:16 +01:00
parent 5a5812c0c7
commit 6c8b523d1f
6643 changed files with 596260 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using FishNet.Connection;
using FishNet.Managing.Timing;
using FishNet.Object;
using FishNet.Serializing;
using FishNet.Transporting;
using GameKit.Utilities;
using System.Collections.Generic;
using UnityEngine;
namespace FishNet.Managing.Client
{
public sealed partial class ClientManager : MonoBehaviour
{
#region Internal.
/// <summary>
/// How many ticks between each LOD update.
/// </summary>
public uint LevelOfDetailInterval => NetworkManager.TimeManager.TimeToTicks(0.5d, TickRounding.RoundUp);
#endregion
#region Private.
/// <summary>
/// Positions of the player objects.
/// </summary>
private List<Vector3> _objectsPositionsCache = new List<Vector3>();
/// <summary>
/// Next index within Spawned to update the LOD on.
/// </summary>
private int _nextLodNobIndex;
#endregion
/// <summary>
/// Sends a level of update if conditions are met.
/// </summary>
/// <param name="forceFullUpdate">True to force send a full update immediately.
/// This may be useful when teleporting clients.
/// This must be called by on the server by using ServerManager.ForceLodUpdate(NetworkConnection).
/// </param>
internal void TrySendLodUpdate(uint localTick, bool forceFullUpdate)
{
}
}
}