This repository has been archived on 2025-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
Files
skolavdf/phr/StickGame/Assets/FishNet/Runtime/Object/Prediction/Interfaces.cs
2024-03-24 22:21:16 +01:00

40 lines
1.1 KiB
C#

namespace FishNet.Object.Prediction
{
public interface IReplicateData
{
/// <summary>
/// Local tick when the data was created.
/// </summary>
/// <returns></returns>
uint GetTick();
/// <summary>
/// Sets the local tick when data was created.
/// </summary>
/// <param name="value"></param>
void SetTick(uint value);
/// <summary>
/// Allows for any cleanup when the data is being discarded.
/// </summary>
void Dispose();
}
public interface IReconcileData
{
/// <summary>
/// Local tick when the data was created.
/// </summary>
/// <returns></returns>
uint GetTick();
/// <summary>
/// Sets the local tick when data was created.
/// </summary>
/// <param name="value"></param>
void SetTick(uint value);
/// <summary>
/// Allows for any cleanup when the data is being discarded.
/// </summary>
void Dispose();
}
}