Class ServerRpcSender
Methods used by weaver to send RPCs
Inheritance
System.Object
Inherited Members
Show
Syntax
public static class ServerRpcSender
Methods
Send(NetworkBehaviour, Int32, NetworkWriter, Channel, Boolean)
Declaration
public static void Send(NetworkBehaviour behaviour, int relativeIndex, NetworkWriter writer, Channel channelId, bool requireAuthority)
Parameters
Type | Name | Description |
---|---|---|
Mirage.NetworkBehaviour | behaviour | |
System.Int32 | relativeIndex | |
Mirage.Serialization.NetworkWriter | writer | |
Mirage.Channel | channelId | |
System.Boolean | requireAuthority |
SendWithReturn<T>(NetworkBehaviour, Int32, NetworkWriter, Boolean)
Declaration
public static UniTask<T> SendWithReturn<T>(NetworkBehaviour behaviour, int relativeIndex, NetworkWriter writer, bool requireAuthority)
Parameters
Type | Name | Description |
---|---|---|
Mirage.NetworkBehaviour | behaviour | |
System.Int32 | relativeIndex | |
Mirage.Serialization.NetworkWriter | writer | |
System.Boolean | requireAuthority |
Returns
Type | Description |
---|---|
Cysharp.Threading.Tasks.UniTask<T> |
ShouldInvokeLocally(NetworkBehaviour, Boolean)
Used by weaver to check if ClientRPC should be invoked locally in host mode
Declaration
public static bool ShouldInvokeLocally(NetworkBehaviour behaviour, bool requireAuthority)
Parameters
Type | Name | Description |
---|---|---|
Mirage.NetworkBehaviour | behaviour | |
System.Boolean | requireAuthority |
Returns
Type | Description |
---|---|
System.Boolean |