Photon Fusion 2.0.0

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.
 

Static Public Member Functions

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

Public Attributes

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

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.