Photon Fusion
2.1.1
RpcInfo is a struct that contains information about the RPC message. More...
Public Member Functions | |
| void | Cancel () |
| Only valid when IsValidating. Marks RPC as handled and will not forward it to any client. | |
| 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 RpcInfo | FromRemote (in RpcInvokeContext context, RpcHostMode hostMode, RpcChannel channel) |
| Creates a new RpcInfo instance from a RpcInvokeContext. | |
Public Attributes | |
| readonly RpcChannel | Channel |
| Represents the channel through which the RPC message was sent. | |
| readonly bool | IsInvokeLocal |
| Indicates whether the RPC message is invoked locally. | |
| readonly PlayerRef | Source |
| Represents the player who sent the RPC message. | |
| readonly Tick | Tick |
| Represents the tick at which the RPC message was sent. | |
Properties | |
| bool | IsValidating [get] |
| Indicates whether this invocation is used for validation. | |
RpcInfo is a struct that contains information about the RPC message.
|
static |
Creates a new RpcInfo instance for a local RPC message.
| runner | The NetworkRunner associated with the RPC message. |
| channel | The RpcChannel through which the RPC message was sent. |
| hostMode | The RpcHostMode of the RPC message. |
|
static |
Creates a new RpcInfo instance from a RpcInvokeContext.
| context | The RPC invoke context |
| hostMode | The RpcHostMode of the RPC message. |
| channel | The channel RPC has been sent with. |