Class LagCompensationSystem
Stores a buffer of previous positions of the relevant entity.
Can be used to check the entity's position at a recent point in time.
Inheritance
System.Object
LagCompensationSystem
Assembly: Content.Server.dll
Syntax
public sealed class LagCompensationSystem : EntitySystem
Fields
|
Improve this Doc
View Source
BufferTime
Declaration
public static readonly TimeSpan BufferTime
Field Value
Type |
Description |
TimeSpan |
|
Methods
|
Improve this Doc
View Source
GetAngle(EntityUid, ICommonSession, Nullable<TransformComponent>)
Declaration
public Angle GetAngle(EntityUid uid, ICommonSession session, TransformComponent? xform = null)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
|
Robust.Shared.Players.ICommonSession |
session |
|
System.Nullable<TransformComponent> |
xform |
|
Returns
|
Improve this Doc
View Source
GetCoordinates(EntityUid, ICommonSession, Nullable<TransformComponent>)
Declaration
public EntityCoordinates GetCoordinates(EntityUid uid, ICommonSession session, TransformComponent? xform = null)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
|
Robust.Shared.Players.ICommonSession |
session |
|
System.Nullable<TransformComponent> |
xform |
|
Returns
Type |
Description |
Robust.Shared.Map.EntityCoordinates |
|
|
Improve this Doc
View Source
GetCoordinatesAngle(EntityUid, ICommonSession, Nullable<TransformComponent>)
Declaration
public (EntityCoordinates Coordinates, Angle Angle) GetCoordinatesAngle(EntityUid uid, ICommonSession pSession, TransformComponent? xform = null)
Parameters
Type |
Name |
Description |
EntityUid |
uid |
|
Robust.Shared.Players.ICommonSession |
pSession |
|
System.Nullable<TransformComponent> |
xform |
|
Returns
Type |
Description |
System.ValueTuple<Robust.Shared.Map.EntityCoordinates, Angle> |
|
|
Improve this Doc
View Source
Initialize()
Declaration
public override void Initialize()
|
Improve this Doc
View Source
Update(Single)
Declaration
public override void Update(float frameTime)
Parameters
Type |
Name |
Description |
System.Single |
frameTime |
|