C# Класс Fusion.Engine.Server.SnapshotQueue

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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