Emergency 20 Dokumentation  4.2.0
em5::MultiplayerServerDataSource Class Reference

Multiplayer server data source. More...

#include <MultiplayerServerDataSource.h>

Inheritance diagram for em5::MultiplayerServerDataSource:

Public Types

enum  SortColumn {
  SORT_LOCKED = 0, SORT_NAME, SORT_COUNT, SORT_MAP,
  SORT_MODE, SORT_DURATION, SORT_LATENCY, _NUM_ITEMS
}
 

Public Member Functions

 MultiplayerServerDataSource ()
 
 ~MultiplayerServerDataSource ()
 
void sortTable (SortColumn sortColumn)
 Sort the table vector. More...
 
bool connectToMatchmakingServer ()
 Connect/Disconnect to the server. More...
 
void disconnectFromMatchmakingServer (bool destroy=false)
 
void updateHostList ()
 Update the list. More...
 
const multiplayer::HostEntrygetHostEntryFromRowIndex (int rowIndex) const
 
virtual void GetRow (Rocket::Core::StringList &row, const Rocket::Core::String &table, int rowIndex, const Rocket::Core::StringList &columns) override
 
virtual int GetNumRows (const Rocket::Core::String &table) override
 

Detailed Description

Multiplayer server data source.

Member Enumeration Documentation

Enumerator
SORT_LOCKED 
SORT_NAME 
SORT_COUNT 
SORT_MAP 
SORT_MODE 
SORT_DURATION 
SORT_LATENCY 
_NUM_ITEMS 

Constructor & Destructor Documentation

em5::MultiplayerServerDataSource::MultiplayerServerDataSource ( )
explicit
em5::MultiplayerServerDataSource::~MultiplayerServerDataSource ( )

Member Function Documentation

bool em5::MultiplayerServerDataSource::connectToMatchmakingServer ( )

Connect/Disconnect to the server.

void em5::MultiplayerServerDataSource::disconnectFromMatchmakingServer ( bool  destroy = false)
const multiplayer::HostEntry& em5::MultiplayerServerDataSource::getHostEntryFromRowIndex ( int  rowIndex) const
virtual int em5::MultiplayerServerDataSource::GetNumRows ( const Rocket::Core::String table)
overridevirtual
virtual void em5::MultiplayerServerDataSource::GetRow ( Rocket::Core::StringList &  row,
const Rocket::Core::String table,
int  rowIndex,
const Rocket::Core::StringList &  columns 
)
overridevirtual
void em5::MultiplayerServerDataSource::sortTable ( SortColumn  sortColumn)

Sort the table vector.

void em5::MultiplayerServerDataSource::updateHostList ( )

Update the list.


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