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
Type | Name | Description |
---|---|---|
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
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.String | name | |
System.Boolean | cmdRequireAuthority | |
Mirage.RemoteCalls.RpcInvokeType | invokerType | |
Mirage.NetworkBehaviour | behaviour | |
Mirage.RemoteCalls.RpcDelegate | func |
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
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.String | name | |
System.Boolean | cmdRequireAuthority | |
Mirage.RemoteCalls.RpcInvokeType | invokerType | |
Mirage.NetworkBehaviour | behaviour | |
Mirage.RemoteCalls.RequestDelegate<T> | func |
GetIndexOffset(NetworkBehaviour)
Declaration
public int GetIndexOffset(NetworkBehaviour behaviour)
Parameters
Type | Name | Description |
---|---|---|
Mirage.NetworkBehaviour | behaviour |
Returns
Type | Description |
---|---|
System.Int32 |
GetRelative(NetworkBehaviour, Int32)
Declaration
public RemoteCall GetRelative(NetworkBehaviour behaviour, int index)
Parameters
Type | Name | Description |
---|---|---|
Mirage.NetworkBehaviour | behaviour | |
System.Int32 | index |
Returns
Type | Description |
---|---|
Mirage.RemoteCalls.RemoteCall |
GetAbsolute(Int32)
Declaration
public RemoteCall GetAbsolute(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Returns
Type | Description |
---|---|
Mirage.RemoteCalls.RemoteCall |