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

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

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Useruser
 The player who was turned into a spectator.
std::shared_ptr< entities::Roomroom
 The Room where it happened.

Detailed Description

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

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

See also
requests::PlayerToSpectatorRequest
entities::User
entities::Room
SFSEvent::PLAYER_TO_SPECTATOR_ERROR
SFSEvent::SPECTATOR_TO_PLAYER

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