Show / Hide Table of Contents

Class RpcManager

Manager class that handles RPC's between server and clients

Inheritance
Object
RpcManager
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Rpc
Assembly: SlipeServer.dll
Syntax
public class RpcManager

Properties

| Improve this Doc View Source

Instance

Declaration
public static RpcManager Instance { get; }
Property Value
Type Description
RpcManager

Methods

| Improve this Doc View Source

RegisterAsyncRPC<ResponseRpc, RequestRpc>(String, Func<Player, RequestRpc, ResponseRpc>)

Register an async RPC

Declaration
public void RegisterAsyncRPC<ResponseRpc, RequestRpc>(string key, Func<Player, RequestRpc, ResponseRpc> callback)
    where ResponseRpc : IRpc where RequestRpc : IRpc
Parameters
Type Name Description
String key
Func<Player, RequestRpc, ResponseRpc> callback
Type Parameters
Name Description
ResponseRpc
RequestRpc
| Improve this Doc View Source

RegisterRPC<CallbackType>(String, Action<Player, CallbackType>)

Register an RPC

Declaration
public void RegisterRPC<CallbackType>(string key, Action<Player, CallbackType> callback)
Parameters
Type Name Description
String key
Action<Player, CallbackType> callback
Type Parameters
Name Description
CallbackType
| Improve this Doc View Source

TriggerAsyncRpc<TResponseRpc>(Player, String, IRpc)

Declaration
public Task<TResponseRpc> TriggerAsyncRpc<TResponseRpc>(Player target, string key, IRpc argument)
    where TResponseRpc : IRpc
Parameters
Type Name Description
Player target
String key
IRpc argument
Returns
Type Description
Task<TResponseRpc>
Type Parameters
Name Description
TResponseRpc
| Improve this Doc View Source

TriggerLatentRPC(Player, String, Int32, IRpc, Boolean)

Trigger an RPC with limited bandwidth

Declaration
public void TriggerLatentRPC(Player target, string key, int bandwidth, IRpc argument, bool persists = false)
Parameters
Type Name Description
Player target
String key
Int32 bandwidth
IRpc argument
Boolean persists
| Improve this Doc View Source

TriggerLatentRPC(String, Int32, IRpc, Boolean)

Trigger an RPC with limited bandwidth

Declaration
public void TriggerLatentRPC(string key, int bandwidth, IRpc argument, bool persists = false)
Parameters
Type Name Description
String key
Int32 bandwidth
IRpc argument
Boolean persists
| Improve this Doc View Source

TriggerRPC(Player, String, IRpc)

Trigger an RPC on a player

Declaration
public void TriggerRPC(Player target, string key, IRpc argument)
Parameters
Type Name Description
Player target
String key
IRpc argument
| Improve this Doc View Source

TriggerRPC(List<Player>, String, IRpc)

Trigger an RPC for a specified list of players

Declaration
public void TriggerRPC(List<Player> targets, string key, IRpc argument)
Parameters
Type Name Description
List<Player> targets
String key
IRpc argument
| Improve this Doc View Source

TriggerRPC(List<Player>, String, Int32, IRpc, Boolean)

Trigger an RPC with limited bandwidth for a specified list of players

Declaration
public void TriggerRPC(List<Player> targets, string key, int bandwidth, IRpc argument, bool persists = false)
Parameters
Type Name Description
List<Player> targets
String key
Int32 bandwidth
IRpc argument
Boolean persists
| Improve this Doc View Source

TriggerRPC(String, IRpc)

Trigger an RPC

Declaration
public void TriggerRPC(string key, IRpc argument)
Parameters
Type Name Description
String key
IRpc argument
  • Improve this Doc
  • View Source
Back to top Generated by DocFX