|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Turns the current user from spectator to player in a Game Room. More...
#include <SpectatorToPlayerRequest.h>
Public Member Functions | |
| SpectatorToPlayerRequest (std::shared_ptr< entities::Room > targetRoom=nullptr) | |
Turns the current user from spectator to player in a Game Room.
If the operation is successful, all the users in the target Room are notified with the SPECTATOR_TO_PLAYER event. The operation could fail if no player slots are available in the Game Room at the time of the request; in this case the SPECTATOR_TO_PLAYER_ERROR event is dispatched to the requester's client.
|
inline |
| targetRoom | the Room in which the spectator should be turned to player; if nullptr, the last Room joined by the current user is used |