This input provider can store a certain amount of input sets in a ring buffer. More...
Public Member Functions | |
RingBufferInputProvider (DeterministicSessionConfig sessionConfig, int capacity=256) | |
Create a ring buffer input provider. More... | |
RingBufferInputProvider (DeterministicTickInputSet[] inputList) | |
Create a ring buffer input provider from a list of input sets. More... | |
RingBufferInputProvider (int playerCount, int startFrame, int capacity) | |
Create a ring buffer input provider. More... | |
void | AddRpc (int player, byte[] data, bool command) |
Unused More... | |
bool | CanSimulate (int frame) |
Returns true if for the given frame input is available. More... | |
void | Clear (int startFrame) |
Clear all input sets. More... | |
DeterministicFrameInputTemp | GetInput (int frame, int player) |
Read the input object. More... | |
QTuple< byte[], bool > | GetRpc (int frame, int player) |
Read the rpc from the input. More... | |
void | InjectInput (DeterministicTickInput input, bool localReplay) |
Inject input into the buffer. More... | |
void | OnInputConfirmed (QuantumGame game, DeterministicFrameInputTemp input) |
The callback is used to record inputs. More... | |
This input provider can store a certain amount of input sets in a ring buffer.
|
inline |
Create a ring buffer input provider.
sessionConfig | Session config |
capacity | Total capacity |
|
inline |
Create a ring buffer input provider from a list of input sets.
inputList | Input sets |
|
inline |
Create a ring buffer input provider.
playerCount | Max player count |
startFrame | Start frame |
capacity | Ring buffer capacity |
|
inline |
Returns true if for the given frame input is available.
frame | Requested frame |
Implements Photon.Deterministic.IDeterministicInputProvider.
|
inline |
Clear all input sets.
startFrame | New start frame |
|
inline |
The callback is used to record inputs.
game | Quantum game |
input | The confirmed input |
|
inline |
Inject input into the buffer.
input | Input to inject |
localReplay | If set to true the sent flag will be set |
|
inline |
Unused
Implements Photon.Deterministic.IDeterministicRpcProvider.
|
inline |
Read the rpc from the input.
frame | Frame |
player | Player |
Implements Photon.Deterministic.IDeterministicRpcProvider.
|
inline |
Read the input object.
frame | Frame |
player | Player |
Implements Photon.Deterministic.IDeterministicInputProvider.