Space Engineers
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
Sandbox.Game.Replication.History.MySnapshotHistory Class Reference

Classes

struct  MyItem
 

Public Types

enum  SnapshotType {
  SnapshotType.Exact, SnapshotType.TooNew, SnapshotType.Interpolation, SnapshotType.Extrapolation,
  SnapshotType.TooOld, SnapshotType.Reset
}
 

Public Member Functions

bool Empty ()
 
MyItem GetItem (MyTimeSpan clientTimestamp)
 
void Add (MySnapshot snapshot, MyTimeSpan timestamp)
 
MyItem GetSimilar (MyTimeSpan clientTimestamp, Vector3 linearVelocity)
 
MyItem Get (MyTimeSpan clientTimestamp, MyTimeSpan delay)
 
void Prune (MyTimeSpan clientTimestamp, MyTimeSpan delay, int leaveCount=2)
 
void PruneTooOld (MyTimeSpan clientTimestamp)
 
void ApplyDeltaPosition (MyTimeSpan timestamp, Vector3D positionDelta)
 
void ApplyDeltaLinearVelocity (MyTimeSpan timestamp, Vector3 linearVelocityDelta)
 
void ApplyDeltaAngularVelocity (MyTimeSpan timestamp, Vector3 angularVelocityDelta)
 
void ApplyDeltaRotation (MyTimeSpan timestamp, Quaternion rotationDelta)
 
void ApplyDelta (MyTimeSpan timestamp, MySnapshot delta)
 
void Reset ()
 
override string ToString ()
 
string ToStringRotation ()
 
string ToStringTimestamps ()
 
void OverwriteLinearVelocityUntil (MyTimeSpan timestamp, Vector3 linearVelocity, float maxLinVel)
 
void OverwriteRotation (MyTimeSpan timestamp, Quaternion rotation)
 
MyItem GetLast ()
 

Static Public Attributes

static readonly MyTimeSpan DELAY = MyTimeSpan.FromMilliseconds(100)
 

Detailed Description

Definition at line 11 of file MySnapshotHistory.cs.

Member Enumeration Documentation

Enumerator
Exact 
TooNew 
Interpolation 
Extrapolation 
TooOld 
Reset 

Definition at line 17 of file MySnapshotHistory.cs.

Member Function Documentation

void Sandbox.Game.Replication.History.MySnapshotHistory.Add ( MySnapshot  snapshot,
MyTimeSpan  timestamp 
)
inline

Definition at line 60 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.ApplyDelta ( MyTimeSpan  timestamp,
MySnapshot  delta 
)
inline

Definition at line 260 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.ApplyDeltaAngularVelocity ( MyTimeSpan  timestamp,
Vector3  angularVelocityDelta 
)
inline

Definition at line 230 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.ApplyDeltaLinearVelocity ( MyTimeSpan  timestamp,
Vector3  linearVelocityDelta 
)
inline

Definition at line 215 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.ApplyDeltaPosition ( MyTimeSpan  timestamp,
Vector3D  positionDelta 
)
inline

Definition at line 200 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.ApplyDeltaRotation ( MyTimeSpan  timestamp,
Quaternion  rotationDelta 
)
inline

Definition at line 245 of file MySnapshotHistory.cs.

bool Sandbox.Game.Replication.History.MySnapshotHistory.Empty ( )
inline

Definition at line 43 of file MySnapshotHistory.cs.

MyItem Sandbox.Game.Replication.History.MySnapshotHistory.Get ( MyTimeSpan  clientTimestamp,
MyTimeSpan  delay 
)
inline

Definition at line 98 of file MySnapshotHistory.cs.

MyItem Sandbox.Game.Replication.History.MySnapshotHistory.GetItem ( MyTimeSpan  clientTimestamp)
inline

Definition at line 48 of file MySnapshotHistory.cs.

MyItem Sandbox.Game.Replication.History.MySnapshotHistory.GetLast ( )
inline

Definition at line 335 of file MySnapshotHistory.cs.

MyItem Sandbox.Game.Replication.History.MySnapshotHistory.GetSimilar ( MyTimeSpan  clientTimestamp,
Vector3  linearVelocity 
)
inline

Definition at line 78 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.OverwriteLinearVelocityUntil ( MyTimeSpan  timestamp,
Vector3  linearVelocity,
float  maxLinVel 
)
inline

!

Definition at line 302 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.OverwriteRotation ( MyTimeSpan  timestamp,
Quaternion  rotation 
)
inline

Definition at line 320 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.Prune ( MyTimeSpan  clientTimestamp,
MyTimeSpan  delay,
int  leaveCount = 2 
)
inline

Definition at line 152 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.PruneTooOld ( MyTimeSpan  clientTimestamp)
inline

Definition at line 162 of file MySnapshotHistory.cs.

void Sandbox.Game.Replication.History.MySnapshotHistory.Reset ( )
inline

Definition at line 275 of file MySnapshotHistory.cs.

override string Sandbox.Game.Replication.History.MySnapshotHistory.ToString ( )
inline

Definition at line 280 of file MySnapshotHistory.cs.

string Sandbox.Game.Replication.History.MySnapshotHistory.ToStringRotation ( )
inline

Definition at line 287 of file MySnapshotHistory.cs.

string Sandbox.Game.Replication.History.MySnapshotHistory.ToStringTimestamps ( )
inline

Definition at line 294 of file MySnapshotHistory.cs.

Member Data Documentation

readonly MyTimeSpan Sandbox.Game.Replication.History.MySnapshotHistory.DELAY = MyTimeSpan.FromMilliseconds(100)
static

Definition at line 14 of file MySnapshotHistory.cs.


The documentation for this class was generated from the following file: