The stream replay input provider is used to play back input from a stream. More...
Public Member Functions | |
StreamReplayInputProvider (Stream inputStream, int maxFrame) | |
Create a stream replay input provider. More... | |
void | AddRpc (int player, byte[] data, bool command) |
Unused. More... | |
int | BeginReadFrame (int frame) |
Request input for a certain frame. More... | |
bool | CanSimulate (int frame) |
Is all input for this frame available. More... | |
void | CompleteReadFrame (int frame, int length, ref byte[] data) |
Read the input data for the frame. More... | |
DeterministicFrameInputTemp | GetInput (int frame, int player) |
Unused. More... | |
QTuple< byte[], bool > | GetRpc (int frame, int player) |
Unused. More... | |
void | Reset () |
Resets the input provider when restarting a replay for example. The stream should be reset to the beginning. More... | |
Static Public Member Functions | |
static void | ForwardToFrame (Stream stream, int frame) |
Skip to a selected frame in the stream. More... | |
Public Attributes | |
int | MaxFrame => _maxFrame |
The max frame that the stream has input for. 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... | |
The stream replay input provider is used to play back input from a stream.
|
inline |
Create a stream replay input provider.
inputStream | Stream to read from |
maxFrame | Max frame that input is available for |
|
inline |
Resets the input provider when restarting a replay for example. The stream should be reset to the beginning.
Implements Photon.Deterministic.IDeterministicStreamReplayInputProvider.
|
inline |
Is all input for this frame available.
frame | Frame number |
Implements Photon.Deterministic.IDeterministicInputProvider.
|
inline |
Request input for a certain frame.
frame | The frame for the requested input |
Implements Photon.Deterministic.IDeterministicStreamReplayInputProvider.
|
inline |
Read the input data for the frame.
frame | The frame to read the input for |
length | The input length requested in BeginReadFrame(int) |
data | The array to copy input data to |
Implements Photon.Deterministic.IDeterministicStreamReplayInputProvider.
|
inline |
Unused.
Implements Photon.Deterministic.IDeterministicInputProvider.
|
inline |
Unused.
Implements Photon.Deterministic.IDeterministicRpcProvider.
|
inline |
Unused.
Implements Photon.Deterministic.IDeterministicRpcProvider.
|
inlinestatic |
Skip to a selected frame in the stream.
stream | Stream |
frame | Frame to fast forward to |
int Quantum.StreamReplayInputProvider.MaxFrame => _maxFrame |
The max frame that the stream has input for.