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, RpcRateLimitConfig)
Declaration
public void Register(int relativeIndex, string name, bool cmdRequireAuthority, RpcInvokeType invokerType, NetworkBehaviour behaviour, RpcDelegate func, RpcRateLimitConfig rateLimit)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | relativeIndex | |
| System.String | name | |
| System.Boolean | cmdRequireAuthority | |
| Mirage.RemoteCalls.RpcInvokeType | invokerType | |
| Mirage.NetworkBehaviour | behaviour | |
| Mirage.RemoteCalls.RpcDelegate | func | |
| Mirage.RemoteCalls.RpcRateLimitConfig | rateLimit |
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
| Type | Name | Description |
|---|---|---|
| System.Int32 | relativeIndex | |
| System.String | name | |
| System.Boolean | cmdRequireAuthority | |
| Mirage.RemoteCalls.RpcInvokeType | invokerType | |
| Mirage.NetworkBehaviour | behaviour | |
| Mirage.RemoteCalls.RequestDelegate<T> | func | |
| Mirage.RemoteCalls.RpcRateLimitConfig | rateLimit |
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 relativeIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Mirage.NetworkBehaviour | behaviour | |
| System.Int32 | relativeIndex |
Returns
| Type | Description |
|---|---|
| Mirage.RemoteCalls.RemoteCall |
GetAbsolute(Int32)
Declaration
public RemoteCall GetAbsolute(int absoluteIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | absoluteIndex |
Returns
| Type | Description |
|---|---|
| Mirage.RemoteCalls.RemoteCall |