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

Dispatched when the number of users, players or spectators inside a Room changes. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Roomroom
 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.

Detailed Description

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.

See also
requests::RoomSettings::events
entities::Room
SFSEvent::USER_ENTER_ROOM
SFSEvent::USER_EXIT_ROOM

Member Data Documentation

◆ sCount

int16_t sfs3::event::UserCountChange::sCount

The new spectators count.

Game Rooms only.


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