class
Rpc
public static abstract sealed class Rpc Properties
| Name | Type | Description |
|---|---|---|
Caller static | Connection | The Connection that is calling this method. |
CallerId static | Guid | The id of the Connection that is calling this method. |
Calling static | Boolean | Whether we're currently being called from a remote Connection. |
Methods
static Void PreCall() Called right before calling an RPC function.
static IDisposable FilterInclude(IEnumerable<Connection> connections) static IDisposable FilterInclude(Predicate<Connection> predicate) static IDisposable FilterInclude(Connection connection) Filter the recipients of any Rpc called in this scope to only include the specified Connection.
connection — Only send the RPC to this connection. static IDisposable FilterExclude(Predicate<Connection> predicate) static IDisposable FilterExclude(IEnumerable<Connection> connections) static IDisposable FilterExclude(Connection connection) Filter the recipients of any Rpc called in this scope to exclude the specified Connection.
connection — Exclude this connection from receiving the RPC. static Void OnCallInstanceRpc(GameObjectSystem system, WrappedMethod m, Object[] argumentList) Called when an instance RPC is called for a Scene and GameObjectSystem.
static Void OnCallInstanceRpc(GameObject go, Component component, WrappedMethod m, Object[] argumentList) Called when an instance RPC is called for a GameObject and Component.
static Void OnCallRpc(WrappedMethod m, T[] argument) Called when a static RPC is called with a single argument of an array type.
static Void OnCallRpc(WrappedMethod m, Object[] argumentList) Called when a static RPC is called with object parameters.