minetestmapper/include/PlayerAttributes.h

27 lines
429 B
C
Raw Permalink Normal View History

#pragma once
#include <list>
#include <string>
struct Player
{
std::string name;
2022-02-09 22:46:07 +01:00
float 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;
};