|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Dispatched when the number of users, players or spectators inside a Room changes. More...
#include <SFSEvent.h>
Public Attributes | |
| std::shared_ptr< entities::Room > | room |
| The Room where the count changed. | |
| int16_t | uCount |
| The new users count, or the players count in a Game Room. | |
| int16_t | sCount |
| The new spectators count. | |
Dispatched when the number of users, players or spectators inside a Room changes.
It can be caused by a requests::JoinRoomRequest, a requests::QuickJoinGameRequest or a requests::LeaveRoomRequest. The Room must belong to one of the Groups subscribed by this client. The Room must also be configured to fire this event, with the events setting passed at creation time.
| int16_t sfs3::event::UserCountChange::sCount |
The new spectators count.
Game Rooms only.