SendDataToInGameRoom
public void SendDataToInGameRoom(byte[] data);
public void SendDataToInGameRoom(byte[] data, int offset, int length);
Parameters
Value | Type | Description |
---|---|---|
data | byte[] | Byte array |
offset | int | Location to start reading data in byte array |
length | int | Length of data to read in byte array(from offset) |
Description
Transmits key input value or a series of game logic result values to the in-game server.
The server will broadcast the transmitted data to all clients currently participating in the game room.
- Clients that sent data to the server are included in 'all clients'.
For more information on how to transform the data to be sent as a byte array, please refer to the Packet Design documentation.
When sending data to a server, throttling is applied. For more information on throttling, please refer to the Throttling documentation.
Example
Backnd.Match.SendDataToInGameRoom(data);