Photon Quantum 3.0.0

Public Member Functions | List of all members
Photon.Deterministic.IDeterministicRpcProvider Interface Reference

The interface encapsulates managing the Quantum RPCs. More...

Inheritance diagram for Photon.Deterministic.IDeterministicRpcProvider:
Photon.Deterministic.IDeterministicReplayProvider Photon.Deterministic.IDeterministicStreamReplayInputProvider Quantum.InputProvider Quantum.RingBufferInputProvider Quantum.BitStreamReplayInputProvider Quantum.StreamReplayInputProvider

Public Member Functions

void AddRpc (int playerSlot, byte[] data, bool command)
 Adds an RPC to the simulation. More...
 
QTuple< byte[], bool > GetRpc (int frame, int player)
 Gets the RPC data for the given frame and player. More...
 

Detailed Description

The interface encapsulates managing the Quantum RPCs.

Member Function Documentation

◆ GetRpc()

QTuple<byte[], bool> Photon.Deterministic.IDeterministicRpcProvider.GetRpc ( int  frame,
int  player 
)

Gets the RPC data for the given frame and player.

Parameters
frameFrame number
playerPlayer
Returns
The RPC data and a bool representing if the RPC is a command.

Implemented in Quantum.InputProvider, Quantum.RingBufferInputProvider, Quantum.StreamReplayInputProvider, and Quantum.BitStreamReplayInputProvider.

◆ AddRpc()

void Photon.Deterministic.IDeterministicRpcProvider.AddRpc ( int  playerSlot,
byte[]  data,
bool  command 
)

Adds an RPC to the simulation.

Parameters
playerSlotThe local player slot
dataThe RPC data
commandIs the RPC a deterministic command

Implemented in Quantum.InputProvider, Quantum.RingBufferInputProvider, Quantum.StreamReplayInputProvider, and Quantum.BitStreamReplayInputProvider.