Skip to main content

Class RemoteCallCollection

Inheritance
System.Object
Inherited Members
Show
Syntax
public class RemoteCallCollection

Fields

IndexOffset

This is set by NetworkIdentity when we register each NetworkBehaviour so that they can pass their own idnex in

Declaration
public int[] IndexOffset

RemoteCalls

Declaration
public RemoteCall[] RemoteCalls

Methods

RegisterAll(NetworkBehaviour[])

Declaration
public void RegisterAll(NetworkBehaviour[] behaviours)
Parameters
TypeNameDescription
Mirage.NetworkBehaviour[]behaviours

Register(Int32, String, Boolean, RpcInvokeType, NetworkBehaviour, RpcDelegate, RpcRateLimitConfig)

Declaration
public void Register(int relativeIndex, string name, bool cmdRequireAuthority, RpcInvokeType invokerType, NetworkBehaviour behaviour, RpcDelegate func, RpcRateLimitConfig rateLimit)
Parameters
TypeNameDescription
System.Int32relativeIndex
System.Stringname
System.BooleancmdRequireAuthority
Mirage.RemoteCalls.RpcInvokeTypeinvokerType
Mirage.NetworkBehaviourbehaviour
Mirage.RemoteCalls.RpcDelegatefunc
Mirage.RemoteCalls.RpcRateLimitConfigrateLimit

RegisterRequest<T>(Int32, String, Boolean, RpcInvokeType, NetworkBehaviour, RequestDelegate<T>, RpcRateLimitConfig)

Declaration
public void RegisterRequest<T>(int relativeIndex, string name, bool cmdRequireAuthority, RpcInvokeType invokerType, NetworkBehaviour behaviour, RequestDelegate<T> func, RpcRateLimitConfig rateLimit)
Parameters
TypeNameDescription
System.Int32relativeIndex
System.Stringname
System.BooleancmdRequireAuthority
Mirage.RemoteCalls.RpcInvokeTypeinvokerType
Mirage.NetworkBehaviourbehaviour
Mirage.RemoteCalls.RequestDelegate<T>func
Mirage.RemoteCalls.RpcRateLimitConfigrateLimit

GetIndexOffset(NetworkBehaviour)

Declaration
public int GetIndexOffset(NetworkBehaviour behaviour)
Parameters
TypeNameDescription
Mirage.NetworkBehaviourbehaviour
Returns
TypeDescription
System.Int32

GetRelative(NetworkBehaviour, Int32)

Declaration
public RemoteCall GetRelative(NetworkBehaviour behaviour, int relativeIndex)
Parameters
TypeNameDescription
Mirage.NetworkBehaviourbehaviour
System.Int32relativeIndex
Returns
TypeDescription
Mirage.RemoteCalls.RemoteCall

GetAbsolute(Int32)

Declaration
public RemoteCall GetAbsolute(int absoluteIndex)
Parameters
TypeNameDescription
System.Int32absoluteIndex
Returns
TypeDescription
Mirage.RemoteCalls.RemoteCall