Skip to main content

Class RemoteCall

Used for invoking a RPC methods

Inheritance​
System.Object
Inherited Members​
Show
Syntax​
public class RemoteCall

Constructors​

RemoteCall(Type, Int32, Int32, RpcInvokeType, RpcDelegate, Boolean, String, RpcRateLimitConfig)​

Declaration​
public RemoteCall(Type declaringType, int componentIndex, int indexInType, RpcInvokeType invokeType, RpcDelegate function, bool requireAuthority, string name, RpcRateLimitConfig rateLimit)
Parameters​
TypeNameDescription
System.TypedeclaringType
System.Int32componentIndex
System.Int32indexInType
Mirage.RemoteCalls.RpcInvokeTypeinvokeType
Mirage.RemoteCalls.RpcDelegatefunction
System.BooleanrequireAuthority
System.Stringname
Mirage.RemoteCalls.RpcRateLimitConfigrateLimit

Fields​

DeclaringType​

Type that rpc was declared in

Declaration​
public readonly Type DeclaringType

ComponentIndex​

Component index within NetworkIdentity.NetworkBehaviours

Declaration​
public readonly int ComponentIndex

RelativeIndex​

Relative index of this RPC within its declaring component

Declaration​
public readonly int RelativeIndex

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

RateLimit​

Rate limit configuration for this RPC

Declaration​
public readonly RpcRateLimitConfig RateLimit

RpcId​

Stable Id for an RPC inside a type

Declaration​
public readonly RpcId RpcId

InvokeMarker​

Declaration​
public readonly ProfilerMarker InvokeMarker

Methods​

ToString()​

User friendly name used for debug/error messages

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