Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
PlayerDatabase Class Referenceabstract

#include <database.h>

+ Inheritance diagram for PlayerDatabase:

Public Member Functions

virtual ~PlayerDatabase ()=default
 
virtual void savePlayer (RemotePlayer *player)=0
 
virtual bool loadPlayer (RemotePlayer *player, PlayerSAO *sao)=0
 
virtual bool removePlayer (const std::string &name)=0
 
virtual void listPlayers (std::vector< std::string > &res)=0
 

Constructor & Destructor Documentation

◆ ~PlayerDatabase()

virtual PlayerDatabase::~PlayerDatabase ( )
virtualdefault

Member Function Documentation

◆ listPlayers()

virtual void PlayerDatabase::listPlayers ( std::vector< std::string > & res)
pure virtual

Implemented in Database_Dummy, PlayerDatabaseFiles, PlayerDatabaseLevelDB, PlayerDatabasePostgreSQL, and PlayerDatabaseSQLite3.

Referenced by ServerEnvironment::migratePlayersDatabase().

+ Here is the caller graph for this function:

◆ loadPlayer()

virtual bool PlayerDatabase::loadPlayer ( RemotePlayer * player,
PlayerSAO * sao )
pure virtual

Implemented in Database_Dummy, PlayerDatabaseFiles, PlayerDatabaseLevelDB, PlayerDatabasePostgreSQL, and PlayerDatabaseSQLite3.

Referenced by ServerEnvironment::loadPlayer(), and ServerEnvironment::migratePlayersDatabase().

+ Here is the caller graph for this function:

◆ removePlayer()

virtual bool PlayerDatabase::removePlayer ( const std::string & name)
pure virtual

Implemented in Database_Dummy, PlayerDatabaseFiles, PlayerDatabaseLevelDB, PlayerDatabasePostgreSQL, and PlayerDatabaseSQLite3.

Referenced by ServerEnvironment::removePlayerFromDatabase().

+ Here is the caller graph for this function:

◆ savePlayer()

virtual void PlayerDatabase::savePlayer ( RemotePlayer * player)
pure virtual

Implemented in Database_Dummy, PlayerDatabaseFiles, PlayerDatabaseLevelDB, PlayerDatabasePostgreSQL, and PlayerDatabaseSQLite3.

Referenced by ServerEnvironment::migratePlayersDatabase(), ServerEnvironment::saveLoadedPlayers(), and ServerEnvironment::savePlayer().

+ Here is the caller graph for this function:

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