Photon Quantum 3.0.0

Public Member Functions | Properties | List of all members
Photon.Deterministic.DeterministicTickInputDecoder Class Reference

The decoder helps to deserialize the input from the server. More...

Public Member Functions

 DeterministicTickInputDecoder (Protocol.Serializer serializer, DeterministicSession session, int finishedTick)
 Creates a input decoder. More...
 
DeterministicTickInputEncodeHeader Decode (BitStream stream, List< DeterministicTickInput > result)
 Decodes input from the stream. More...
 
void ResetInputState (int tick)
 Sets the finished tick. More...
 

Properties

int FinishedTick [get]
 The finished tick, everything before is 100% done and cleared. More...
 

Detailed Description

The decoder helps to deserialize the input from the server.

Constructor & Destructor Documentation

◆ DeterministicTickInputDecoder()

Photon.Deterministic.DeterministicTickInputDecoder.DeterministicTickInputDecoder ( Protocol.Serializer  serializer,
DeterministicSession  session,
int  finishedTick 
)
inline

Creates a input decoder.

Parameters
serializerQuantum protocol serializer
sessionDeterministic session
finishedTickFinished tick

Member Function Documentation

◆ ResetInputState()

void Photon.Deterministic.DeterministicTickInputDecoder.ResetInputState ( int  tick)
inline

Sets the finished tick.

Parameters
tickFinished tick

◆ Decode()

DeterministicTickInputEncodeHeader Photon.Deterministic.DeterministicTickInputDecoder.Decode ( BitStream  stream,
List< DeterministicTickInput result 
)
inline

Decodes input from the stream.

Parameters
streamBitstream
resultResulting input objects
Returns
Decoded input header

Property Documentation

◆ FinishedTick

int Photon.Deterministic.DeterministicTickInputDecoder.FinishedTick
get

The finished tick, everything before is 100% done and cleared.