C# 클래스 Fusion.Engine.Server.SnapshotQueue

파일 보기 프로젝트 열기: demiurghg/FusionEngine 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Compress() 공개 메소드

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

Decompress() 공개 메소드

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

GetLag() 공개 메소드

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

Push() 공개 메소드

public Push ( Snapshot snapshot ) : void
snapshot Snapshot
리턴 void

Push() 공개 메소드

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

SnapshotQueue() 공개 메소드

public SnapshotQueue ( int capacity ) : System
capacity int
리턴 System