Skip to main content

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
TypeNameDescription
Mirage.NetworkBehaviourbehaviour
System.Int32relativeIndex
Mirage.Serialization.NetworkWriterwriter
Mirage.ChannelchannelId
System.BooleanrequireAuthority

SendWithReturn<T>(NetworkBehaviour, Int32, NetworkWriter, Boolean)

Declaration
public static UniTask<T> SendWithReturn<T>(NetworkBehaviour behaviour, int relativeIndex, NetworkWriter writer, bool requireAuthority)
Parameters
TypeNameDescription
Mirage.NetworkBehaviourbehaviour
System.Int32relativeIndex
Mirage.Serialization.NetworkWriterwriter
System.BooleanrequireAuthority
Returns
TypeDescription
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
TypeNameDescription
Mirage.NetworkBehaviourbehaviour
System.BooleanrequireAuthority
Returns
TypeDescription
System.Boolean