C# Class Fusion.Engine.Server.SnapshotQueue

Afficher le fichier Open project: demiurghg/FusionEngine Class Usage Examples

Méthodes publiques

Méthode Description
Compress ( uint &prevFrame, int &size ) : byte[]

Decompress ( uint prevFrameId, byte snapshot ) : byte[]

GetLag ( uint clientSnapshotID, GameTime currentGameTime ) : float

Gets time lag between client and server. Sum???

Push ( Snapshot snapshot ) : void

Push ( System.TimeSpan timestamp, byte snapshot ) : void

SnapshotQueue ( int capacity ) : System

Method Details

Compress() public méthode

public Compress ( uint &prevFrame, int &size ) : byte[]
prevFrame uint
size int
Résultat byte[]

Decompress() public méthode

public Decompress ( uint prevFrameId, byte snapshot ) : byte[]
prevFrameId uint
snapshot byte
Résultat byte[]

GetLag() public méthode

Gets time lag between client and server. Sum???
public GetLag ( uint clientSnapshotID, GameTime currentGameTime ) : float
clientSnapshotID uint
currentGameTime Fusion.Engine.Common.GameTime
Résultat float

Push() public méthode

public Push ( Snapshot snapshot ) : void
snapshot Snapshot
Résultat void

Push() public méthode

public Push ( System.TimeSpan timestamp, byte snapshot ) : void
timestamp System.TimeSpan
snapshot byte
Résultat void

SnapshotQueue() public méthode

public SnapshotQueue ( int capacity ) : System
capacity int
Résultat System