mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
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();
|
|
}
|
|
}
|
|
}
|