Skip to content

Mirror::RemoteCalls::RemoteCallHelper

Used to help manage remote calls for NetworkBehaviours

Public Functions

Name
void RegisterCommandDelegate(Type invokeClass, string cmdName, CmdDelegate func, bool ignoreAuthority)
void RegisterRpcDelegate(Type invokeClass, string rpcName, CmdDelegate func)
CmdDelegate GetDelegate(int cmdHash)
Gets the handler function for a given hash Can be used by profilers and debuggers

Public Functions Documentation

function RegisterCommandDelegate

static inline void RegisterCommandDelegate(
    Type invokeClass,
    string cmdName,
    CmdDelegate func,
    bool ignoreAuthority
)

function RegisterRpcDelegate

static inline void RegisterRpcDelegate(
    Type invokeClass,
    string rpcName,
    CmdDelegate func
)

function GetDelegate

static inline CmdDelegate GetDelegate(
    int cmdHash
)

Gets the handler function for a given hash Can be used by profilers and debuggers

Parameters:

  • cmdHash rpc function hash

Return: The function delegate that will handle the command


Updated on 20 January 2021 at 20:00:04 UTC