C# Class Fusion.Engine.Server.SnapshotQueue

显示文件 Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method 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 method

public Compress ( uint &prevFrame, int &size ) : byte[]
prevFrame uint
size int
return byte[]

Decompress() public method

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

GetLag() public method

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

Push() public method

public Push ( Snapshot snapshot ) : void
snapshot Snapshot
return void

Push() public method

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

SnapshotQueue() public method

public SnapshotQueue ( int capacity ) : System
capacity int
return System