Photon Quantum 3.0.0

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Photon.Deterministic.DeterministicFrameInputTemp Struct Reference

A struct that saves input data for a player duplicating internal input data that is not save to use because of recycling. More...

Public Member Functions

byte[] CloneData ()
 Copies the Data into a new array. More...
 

Static Public Member Functions

static DeterministicFrameInputTemp Predicted (byte[] data, int dataLength, DeterministicInputFlags flags)
 Creates a predicted input object for tick 0 and player 0 without rpc data. More...
 
static DeterministicFrameInputTemp Predicted (int frame, int player, byte[] data, int dataLength, DeterministicInputFlags flags)
 Creates a predicted input object without rpc data. More...
 
static DeterministicFrameInputTemp Predicted (int frame, int player, byte[] rpc, byte[] data, int dataLength, DeterministicInputFlags flags)
 Creates a predicted input object. More...
 
static DeterministicFrameInputTemp Predicted (int player, byte[] data, int dataLength, DeterministicInputFlags flags)
 Creates a predicted input object for tick 0 without rpc data. More...
 
static DeterministicFrameInputTemp Verified (int frame, int player, byte[] rpc, byte[] data, int dataLength, DeterministicInputFlags flags)
 Creates a verified input object. More...
 

Public Attributes

byte[] Data
 The input data. More...
 
int DataLength
 The Data length. More...
 
DeterministicInputFlags Flags
 The input flags. More...
 
int Frame
 The tick of the frame this input belongs to. More...
 
bool IsVerified
 A flag indicating if the data is verified by the server. More...
 
int Player
 The Player that the input belongs to. More...
 
byte[] Rpc
 The RPC data. More...
 

Detailed Description

A struct that saves input data for a player duplicating internal input data that is not save to use because of recycling.

Member Function Documentation

◆ CloneData()

byte [] Photon.Deterministic.DeterministicFrameInputTemp.CloneData ( )
inline

Copies the Data into a new array.

Returns

◆ Verified()

static DeterministicFrameInputTemp Photon.Deterministic.DeterministicFrameInputTemp.Verified ( int  frame,
int  player,
byte[]  rpc,
byte[]  data,
int  dataLength,
DeterministicInputFlags  flags 
)
inlinestatic

Creates a verified input object.

Parameters
frameTick of the frame
playerThe Quantum player this input is for.
rpcThe rpc data
dataThe input data
dataLengthThe input data length
flagsThe input flags
Returns
An instance of DeterministicFrameInputTemp with the Verified toggle enabled.

◆ Predicted() [1/4]

static DeterministicFrameInputTemp Photon.Deterministic.DeterministicFrameInputTemp.Predicted ( byte[]  data,
int  dataLength,
DeterministicInputFlags  flags 
)
inlinestatic

Creates a predicted input object for tick 0 and player 0 without rpc data.

Parameters
dataThe input data
dataLengthThe input length
flagsThe input flags
Returns
An instance of DeterministicFrameInputTemp with the Verified toggle disabled.

◆ Predicted() [2/4]

static DeterministicFrameInputTemp Photon.Deterministic.DeterministicFrameInputTemp.Predicted ( int  player,
byte[]  data,
int  dataLength,
DeterministicInputFlags  flags 
)
inlinestatic

Creates a predicted input object for tick 0 without rpc data.

Parameters
playerThe Quantum player
dataThe input data
dataLengthThe input data length
flagsThe input flags
Returns
An instance of DeterministicFrameInputTemp with the Verified toggle disabled.

◆ Predicted() [3/4]

static DeterministicFrameInputTemp Photon.Deterministic.DeterministicFrameInputTemp.Predicted ( int  frame,
int  player,
byte[]  data,
int  dataLength,
DeterministicInputFlags  flags 
)
inlinestatic

Creates a predicted input object without rpc data.

Parameters
frameTick
playerThe Quantum player
dataThe input data
dataLengthThe input data length
flagsThe input flags
Returns
An instance of DeterministicFrameInputTemp with the Verified toggle disabled.

◆ Predicted() [4/4]

static DeterministicFrameInputTemp Photon.Deterministic.DeterministicFrameInputTemp.Predicted ( int  frame,
int  player,
byte[]  rpc,
byte[]  data,
int  dataLength,
DeterministicInputFlags  flags 
)
inlinestatic

Creates a predicted input object.

Parameters
frameTick of the frame
playerThe Quantum player this input is for.
rpcThe rpc data
dataThe input data
dataLengthThe input data length
flagsThe input flags
Returns
An instance of DeterministicFrameInputTemp with the Verified toggle disabled.

Member Data Documentation

◆ Frame

int Photon.Deterministic.DeterministicFrameInputTemp.Frame

The tick of the frame this input belongs to.

◆ Player

int Photon.Deterministic.DeterministicFrameInputTemp.Player

The Player that the input belongs to.

◆ Rpc

byte [] Photon.Deterministic.DeterministicFrameInputTemp.Rpc

The RPC data.

◆ Data

byte [] Photon.Deterministic.DeterministicFrameInputTemp.Data

The input data.

◆ DataLength

int Photon.Deterministic.DeterministicFrameInputTemp.DataLength

The Data length.

◆ IsVerified

bool Photon.Deterministic.DeterministicFrameInputTemp.IsVerified

A flag indicating if the data is verified by the server.

◆ Flags

DeterministicInputFlags Photon.Deterministic.DeterministicFrameInputTemp.Flags

The input flags.