mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-22 15:33:49 +01:00
8e83ce6464
also a few small performance improvements
27 lines
430 B
C++
27 lines
430 B
C++
#pragma once
|
|
|
|
#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::const_iterator begin() const;
|
|
Players::const_iterator end() const;
|
|
|
|
private:
|
|
void readFiles(const std::string &playersPath);
|
|
void readSqlite(const std::string &db_name);
|
|
|
|
Players m_players;
|
|
};
|