Rpcclass

RPCs travel as `Sandbox.Network.InternalMessageType.Rpc`: what kind of target, its ids, the method identity, generic argument identities, then each argument as BytePack writes it. Read straight from the message into a typed `Sandbox.RpcInvoker` where possible.

object→Rpc
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Rpc

Methods18

Showing 18 methods

public static void PreCall()PUBLICSTATIC

Called right before calling an RPC function.

Returns:void—

Properties3

Showing 3 properties

public static Sandbox.Connection Sandbox.Rpc.Caller { get; set; }PUBLICSTATICGETSET

The `Sandbox.Connection` that is calling this method.

Returns:Connection—

public static System.Guid Sandbox.Rpc.CallerId { get; set; }PUBLICSTATICGETSET

The id of the `Sandbox.Connection` that is calling this method.

Returns:Guid—

public static bool Sandbox.Rpc.Calling { get; set; }PUBLICSTATICGETSET

Whether we're currently being called from a remote `Sandbox.Connection`.

Returns:bool—

On this page

Methodspublic static System.IDisposable FilterExclude(Sandbox.Connection connection)public static System.IDisposable FilterExclude(System.Collections.Generic.IEnumerable`1<Sandbox.Connection> connections)public static System.IDisposable FilterExclude(System.Predicate`1<Sandbox.Connection> predicate)public static System.IDisposable FilterInclude(Sandbox.Connection connection)public static System.IDisposable FilterInclude(System.Collections.Generic.IEnumerable`1<Sandbox.Connection> connections)public static System.IDisposable FilterInclude(System.Predicate`1<Sandbox.Connection> predicate)public static System.Void OnCallInstanceRpc(Sandbox.GameObject go, Sandbox.Component component, Sandbox.WrappedMethod m, System.Object[] argumentList)public static System.Void OnCallInstanceRpc(Sandbox.GameObjectSystem system, Sandbox.WrappedMethod m, System.Object[] argumentList)public static System.Void OnCallRpc(Sandbox.WrappedMethod m, System.Object[] argumentList)public static System.Void OnCallRpc(Sandbox.WrappedMethod m)public static System.Void OnCallRpc(Sandbox.WrappedMethod m, T1 a1)public static System.Void OnCallRpc(Sandbox.WrappedMethod m, T[] argument)public static System.Void OnCallRpc(Sandbox.WrappedMethod m, T1 a1, T2 a2)public static System.Void OnCallRpc(Sandbox.WrappedMethod m, T1 a1, T2 a2, T3 a3)public static System.Void OnCallRpc(Sandbox.WrappedMethod m, T1 a1, T2 a2, T3 a3, T4 a4)public static System.Void OnCallRpc(Sandbox.WrappedMethod m, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)public static System.Void OnCallRpc(Sandbox.WrappedMethod m, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6)public static System.Void PreCall()Propertiespublic static Sandbox.Connection Sandbox.Rpc.Caller { get; set; }public static System.Guid Sandbox.Rpc.CallerId { get; set; }public static System.Boolean Sandbox.Rpc.Calling { get; set; }Metadata