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

Dispatched when another user enters one of the Rooms joined by the current user. More...

#include <SFSEvent.h>

Public Attributes

std::shared_ptr< entities::Useruser
 The user who joined the Room.
std::shared_ptr< entities::Roomroom
 The Room that was joined.

Detailed Description

Dispatched when another user enters one of the Rooms joined by the current user.

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

See also
requests::RoomSettings::events
entities::User
entities::Room
SFSEvent::USER_EXIT_ROOM
SFSEvent::USER_COUNT_CHANGE

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