Photon Fusion 2.0.4

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
RpcInfo Struct Reference

RpcInfo is a struct that contains information about the RPC message. More...

Public Member Functions

override string ToString ()
 Returns a string that represents the current RpcInfo. More...
 

Static Public Member Functions

static RpcInfo FromLocal (NetworkRunner runner, RpcChannel channel, RpcHostMode hostMode)
 Creates a new RpcInfo instance for a local RPC message. More...
 
static unsafe RpcInfo FromMessage (NetworkRunner runner, SimulationMessage *message, RpcHostMode hostMode)
 Creates a new RpcInfo instance from a SimulationMessage. More...
 

Public Attributes

RpcChannel Channel
 Represents the channel through which the RPC message was sent. More...
 
bool IsInvokeLocal
 Indicates whether the RPC message is invoked locally. More...
 
PlayerRef Source
 Represents the player who sent the RPC message. More...
 
Tick Tick
 Represents the tick at which the RPC message was sent. More...
 

Detailed Description

RpcInfo is a struct that contains information about the RPC message.

Member Function Documentation

◆ FromLocal()

static RpcInfo FromLocal ( NetworkRunner  runner,
RpcChannel  channel,
RpcHostMode  hostMode 
)
static

Creates a new RpcInfo instance for a local RPC message.

Parameters
runnerThe NetworkRunner associated with the RPC message.
channelThe RpcChannel through which the RPC message was sent.
hostModeThe RpcHostMode of the RPC message.
Returns
Returns a new RpcInfo instance with the provided parameters.

◆ FromMessage()

static unsafe RpcInfo FromMessage ( NetworkRunner  runner,
SimulationMessage message,
RpcHostMode  hostMode 
)
static

Creates a new RpcInfo instance from a SimulationMessage.

Parameters
runnerThe NetworkRunner associated with the RPC message.
messageThe SimulationMessage from which to create the RpcInfo instance.
hostModeThe RpcHostMode of the RPC message.
Returns
Returns a new RpcInfo instance with the provided parameters.

◆ ToString()

override string ToString ( )

Returns a string that represents the current RpcInfo.

Returns
Returns a string that represents the current RpcInfo.

Member Data Documentation

◆ Channel

RpcChannel Channel

Represents the channel through which the RPC message was sent.

◆ IsInvokeLocal

bool IsInvokeLocal

Indicates whether the RPC message is invoked locally.

◆ Source

PlayerRef Source

Represents the player who sent the RPC message.

◆ Tick

Represents the tick at which the RPC message was sent.