This implementation of IDeterministicStreamReplayInputProvider is used to provide delta compressed input for a Quantum simulation replay from a BitStream. More...
Public Member Functions | |
BitStreamReplayInputProvider (BitStream inputStream, int maxFrame) | |
Create input provider. More... | |
void | AddRpc (int player, byte[] data, bool command) |
Unused. More... | |
int | BeginReadFrame (int frame) |
Read the size of the input from the stream. It is expected that the input requested matches the input order in the stream. More... | |
bool | CanSimulate (int frame) |
Returns true if for the given frame input is available. More... | |
void | CompleteReadFrame (int frame, int length, ref byte[] data) |
Actually read the input data. More... | |
DeterministicFrameInputTemp | GetInput (int frame, int player) |
Unused. More... | |
QTuple< byte[], bool > | GetRpc (int frame, int player) |
Unused. More... | |
void | Reset () |
Reset the stream to the beginning. More... | |
Public Attributes | |
int | MaxFrame => _maxFrame |
The max frame available to read. More... | |
Additional Inherited Members | |
Properties inherited from Photon.Deterministic.IDeterministicStreamReplayInputProvider | |
int | MaxFrame [get] |
The maximum frame number that the input provider can provide at a given moment. More... | |
This implementation of IDeterministicStreamReplayInputProvider is used to provide delta compressed input for a Quantum simulation replay from a BitStream.
|
inline |
Create input provider.
inputStream | The input bitstream |
maxFrame | The max frame of the recorded replay |
|
inline |
Reset the stream to the beginning.
Implements Photon.Deterministic.IDeterministicStreamReplayInputProvider.
|
inline |
Returns true if for the given frame input is available.
frame | Requested frame |
Implements Photon.Deterministic.IDeterministicInputProvider.
|
inline |
Read the size of the input from the stream. It is expected that the input requested matches the input order in the stream.
frame | Input requested for this frame |
Implements Photon.Deterministic.IDeterministicStreamReplayInputProvider.
|
inline |
Actually read the input data.
frame | The frame of the requested input |
length | The input length returned by BeginReadFrame(int) |
data | The data to be copied to |
Implements Photon.Deterministic.IDeterministicStreamReplayInputProvider.
|
inline |
Unused.
Implements Photon.Deterministic.IDeterministicInputProvider.
|
inline |
Unused.
Implements Photon.Deterministic.IDeterministicRpcProvider.
|
inline |
Unused.
Implements Photon.Deterministic.IDeterministicRpcProvider.
int Quantum.BitStreamReplayInputProvider.MaxFrame => _maxFrame |
The max frame available to read.