Manages RPC calls and their executions via Room class.
More...
|
| RPC (Room room) |
| Instantiate RPC class. More...
|
|
bool | Register (int rpcID, Action< byte[]> callback) |
| Registers An RPC method associated with rpcID (rpcID must be unique per RPC method). More...
|
|
bool | RPCAll (int rpcID, byte[] payload, bool reliable=true) |
| Sends an RPC command to all remote clients. More...
|
|
bool | RPCMany (int rpcID, List< string > userIDs, byte[] payload, bool reliable=true) |
| Sends an RPC command to selected remote clients. More...
|
|
bool | RPCOne (int rpcID, string userID, byte[] payload, bool reliable=true) |
| Sends an RPC command to a selected remote client. More...
|
|
Manages RPC calls and their executions via Room class.
◆ RPC()
Diarkis.Modules.RPC.RPC |
( |
Room |
room | ) |
|
|
inline |
Instantiate RPC class.
- Parameters
-
room | A room instance of the room that the client is member of. |
◆ Register()
bool Diarkis.Modules.RPC.Register |
( |
int |
rpcID, |
|
|
Action< byte[]> |
callback |
|
) |
| |
|
inline |
Registers An RPC method associated with rpcID (rpcID must be unique per RPC method).
- Parameters
-
rpcID | A unique ID of RPC method to be associated with the RPC function. |
callback | The RPC function associated with rpcID tobe executed remotely. |
◆ RPCAll()
bool Diarkis.Modules.RPC.RPCAll |
( |
int |
rpcID, |
|
|
byte[] |
payload, |
|
|
bool |
reliable = true |
|
) |
| |
|
inline |
Sends an RPC command to all remote clients.
- Parameters
-
rpcID | RPC ID associated with the method to be exeuted. - Parameters
-
payload | RPC parameter(s) as a byte array. - Parameters
-
reliable | For UDP client, setting this is true will indicate RUDP transimission. |
|
|
◆ RPCMany()
bool Diarkis.Modules.RPC.RPCMany |
( |
int |
rpcID, |
|
|
List< string > |
userIDs, |
|
|
byte[] |
payload, |
|
|
bool |
reliable = true |
|
) |
| |
|
inline |
Sends an RPC command to selected remote clients.
- Parameters
-
rpcID | RPC ID associated with the method to be exeuted. - Parameters
-
rpcID | List of remote client user IDs. - Parameters
-
userIDs | A list of user IDs to execute an RPC remotely. |
payload | RPC parameter(s) as a byte array. - Parameters
-
reliable | For UDP client, setting this is true will indicate RUDP transimission. |
|
|
|
◆ RPCOne()
bool Diarkis.Modules.RPC.RPCOne |
( |
int |
rpcID, |
|
|
string |
userID, |
|
|
byte[] |
payload, |
|
|
bool |
reliable = true |
|
) |
| |
|
inline |
Sends an RPC command to a selected remote client.
- Parameters
-
rpcID | RPC ID associated with the method to be exeuted. - Parameters
-
rpcID | List of remote client user IDs. - Parameters
-
userID | A User ID to execute an RPC remotely. |
payload | RPC parameter(s) as a byte array. - Parameters
-
reliable | For UDP client, setting this is true will indicate RUDP transimission. |
|
|
|
The documentation for this class was generated from the following file: