mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-01 17:47:24 +02:00
Adds ClientGameTiming with prediction and local/server time methods.
20 lines
391 B
C#
20 lines
391 B
C#
using System;
|
|
|
|
namespace Robust.Client.Timing
|
|
{
|
|
public readonly struct PredictionGuard : IDisposable
|
|
{
|
|
private readonly IClientGameTiming _gameTiming;
|
|
|
|
public PredictionGuard(IClientGameTiming gameTiming)
|
|
{
|
|
_gameTiming = gameTiming;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
_gameTiming.EndPastPrediction();
|
|
}
|
|
}
|
|
}
|