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)

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

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

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

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 index)
Parameters
TypeNameDescription
Mirage.NetworkBehaviourbehaviour
System.Int32index
Returns
TypeDescription
Mirage.RemoteCalls.RemoteCall

GetAbsolute(Int32)

Declaration
public RemoteCall GetAbsolute(int index)
Parameters
TypeNameDescription
System.Int32index
Returns
TypeDescription
Mirage.RemoteCalls.RemoteCall