mirror of
https://github.com/Dadechin/Unity-WebSocket.git
synced 2025-07-03 20:04:33 +00:00
40 lines
1.0 KiB
C#
40 lines
1.0 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();
|
|
}
|
|
|
|
} |