Skip to main content

Class RemoteCall

Used for invoking a RPC methods

Inheritance
System.Object
Inherited Members
Show
Syntax
public class RemoteCall

Constructors

RemoteCall(NetworkBehaviour, RpcInvokeType, RpcDelegate, Boolean, String)

Declaration
public RemoteCall(NetworkBehaviour behaviour, RpcInvokeType invokeType, RpcDelegate function, bool requireAuthority, string name)
Parameters
TypeNameDescription
Mirage.NetworkBehaviourbehaviour
Mirage.RemoteCalls.RpcInvokeTypeinvokeType
Mirage.RemoteCalls.RpcDelegatefunction
System.BooleanrequireAuthority
System.Stringname

Fields

DeclaringType

Type that rpc was declared in

Declaration
public readonly Type DeclaringType

InvokeType

Server rpc or client rpc

Declaration
public readonly RpcInvokeType InvokeType

Function

Function to be invoked when receiving message

Declaration
public readonly RpcDelegate Function

RequireAuthority

Used by ServerRpc

Declaration
public readonly bool RequireAuthority

Name

User friendly name

Declaration
public readonly string Name

Behaviour

Declaration
public readonly NetworkBehaviour Behaviour

Methods

ToString()

User friendly name used for debug/error messages

Declaration
public override string ToString()
Returns
TypeDescription
System.String