mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-12-26 19:00:37 +01:00
b6ad40feb9
fixes #47
31 lines
530 B
C++
31 lines
530 B
C++
#ifndef PLAYERATTRIBUTES_H_D7THWFVV
|
|
#define PLAYERATTRIBUTES_H_D7THWFVV
|
|
|
|
#include <list>
|
|
#include <string>
|
|
|
|
struct Player
|
|
{
|
|
std::string name;
|
|
double x, y, z;
|
|
};
|
|
|
|
class PlayerAttributes
|
|
{
|
|
public:
|
|
typedef std::list<Player> Players;
|
|
|
|
PlayerAttributes(const std::string &worldDir);
|
|
Players::iterator begin();
|
|
Players::iterator end();
|
|
|
|
private:
|
|
void readFiles(const std::string &playersPath);
|
|
void readSqlite(const std::string &db_name);
|
|
|
|
Players m_players;
|
|
};
|
|
|
|
#endif /* end of include guard: PLAYERATTRIBUTES_H_D7THWFVV */
|
|
|