mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
20 lines
390 B
C#
20 lines
390 B
C#
using System;
|
|
|
|
namespace Robust.Shared.Interfaces.Timing
|
|
{
|
|
public readonly struct PredictionGuard : IDisposable
|
|
{
|
|
private readonly IGameTiming _gameTiming;
|
|
|
|
public PredictionGuard(IGameTiming gameTiming)
|
|
{
|
|
_gameTiming = gameTiming;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
_gameTiming.EndPastPrediction();
|
|
}
|
|
}
|
|
}
|