Lag compensation for melee (#11885)

Co-authored-by: metalgearsloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2022-10-17 15:54:31 +11:00
committed by GitHub
parent ece9bf372a
commit 123a9dbf02
12 changed files with 242 additions and 56 deletions

View File

@@ -0,0 +1,10 @@
namespace Content.Server.Movement.Components;
/// <summary>
/// Track lag compensation components that may need to have their data culled for memory reasons.
/// </summary>
[RegisterComponent]
public sealed class ActiveLagCompensationComponent : Component
{
}

View File

@@ -0,0 +1,10 @@
using Robust.Shared.Map;
namespace Content.Server.Movement.Components;
[RegisterComponent]
public sealed class LagCompensationComponent : Component
{
[ViewVariables]
public readonly Queue<ValueTuple<TimeSpan, EntityCoordinates, Angle>> Positions = new();
}