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

Dispatched when the Buddy List system is initialized successfully. More...

#include <SFSEvent.h>

Public Attributes

std::vector< std::shared_ptr< entities::Buddy > > buddyList
 The buddies in the current user's list.
std::vector< std::shared_ptr< entities::BuddyVariable > > myVariables
 The Buddy Variables of the current user.

Detailed Description

Dispatched when the Buddy List system is initialized successfully.

Sent in response to a requests::buddy::InitBuddyListRequest.

After the initialization the user returns to his previous custom state, nickname and persistent Buddy Variables, all reloaded from the server. In particular his online state (see core::buddy::BuddyManager::getMyOnlineState) decides if he appears online to the other users who have him as a buddy.

Both lists are snapshots taken from the BuddyManager once it is populated; the manager itself stays the authority as buddies come and go.

See also
requests::buddy::InitBuddyListRequest
core::buddy::BuddyManager
entities::Buddy
entities::BuddyVariable
SFSEvent::BUDDY_ERROR

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