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

Dispatched when one of the Rooms joined by the current user is left by another user, or by the current user himself. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Useruser
 The user who left the Room.
std::shared_ptr< entities::Roomroom
 The Room that was left.
bool wasLastJoined
 True if I left the Room returned by SmartFox::getLastJoinedRoom at the time the event was raised; always false when the exiting user is not myself.

Detailed Description

Dispatched when one of the Rooms joined by the current user is left by another user, or by the current user himself.

It is caused by a requests::LeaveRoomRequest. The Room must be configured to fire this event, with the events setting passed at creation time.

See also
requests::LeaveRoomRequest
requests::RoomSettings::events
entities::User
entities::Room
SFSEvent::USER_ENTER_ROOM
SFSEvent::USER_COUNT_CHANGE

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