Quantum 3
3.0.9
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, int localActorNumber=0) | |
| 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... | |
Public Attributes | |
| int | LocalActorNumber => _localActorNumber |
| The actor number of the client that recoded the replay. More... | |
Additional Inherited Members | |
Properties inherited from Photon.Deterministic.IDeterministicReplayProvider | |
| int | LocalActorNumber [get] |
| Setting the correct local actor number makes DeterministicSession.IsLocalPlayer(Quantum.PlayerRef) work in replays similar to normal Quantum sessions. 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 |
| localActorNumber | The actor number of the client that recoded the replay. |
|
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.
| int Quantum.RingBufferInputProvider.LocalActorNumber => _localActorNumber |
The actor number of the client that recoded the replay.