SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
Loading...
Searching...
No Matches
sfs3::event::SpectatorToPlayer Struct Reference

Dispatched when a spectator is turned into a player inside a Game Room. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Useruser
 The spectator who was turned into a player.
std::shared_ptr< entities::Roomroom
 The Room where it happened.
int32_t playerId
 The player slot the server assigned to the user in that Room.

Detailed Description

Dispatched when a spectator is turned into a player inside a Game Room.

Sent in response to a requests::SpectatorToPlayerRequest, if the operation succeeded.

See also
requests::SpectatorToPlayerRequest
entities::User
entities::Room
SFSEvent::SPECTATOR_TO_PLAYER_ERROR
SFSEvent::PLAYER_TO_SPECTATOR

The documentation for this struct was generated from the following file: