Class RpcManager
Manager class that handles RPC's between server and clients
Assembly: SlipeServer.dll
Syntax
Properties
|
Improve this Doc
View Source
Instance
Declaration
public static RpcManager Instance { get; }
Property Value
Methods
|
Improve this Doc
View Source
RegisterAsyncRPC<ResponseRpc, RequestRpc>(String, Func<Player, RequestRpc, ResponseRpc>)
Declaration
public void RegisterAsyncRPC<ResponseRpc, RequestRpc>(string key, Func<Player, RequestRpc, ResponseRpc> callback)
where ResponseRpc : IRpc where RequestRpc : IRpc
Parameters
Type Parameters
Name |
Description |
ResponseRpc |
|
RequestRpc |
|
|
Improve this Doc
View Source
RegisterRPC<CallbackType>(String, Action<Player, CallbackType>)
Declaration
public void RegisterRPC<CallbackType>(string key, Action<Player, CallbackType> callback)
Parameters
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
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
|
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
|
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
|
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
|
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
|
Improve this Doc
View Source
TriggerRPC(String, IRpc)
Declaration
public void TriggerRPC(string key, IRpc argument)
Parameters