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
Type | Name | Description |
---|---|---|
Mirage.NetworkBehaviour | behaviour | |
Mirage.RemoteCalls.RpcInvokeType | invokeType | |
Mirage.RemoteCalls.RpcDelegate | function | |
System.Boolean | requireAuthority | |
System.String | name |
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
Type | Description |
---|---|
System.String |