minecraft-pi-reborn/mods/src/server/server_properties.h

18 lines
414 B
C
Raw Normal View History

2021-01-27 21:26:19 +00:00
#pragma once
2020-10-10 23:02:13 +00:00
#include <string>
#include <istream>
#include <map>
class ServerProperties {
private:
std::map<std::string, std::string> properties;
public:
void load(std::istream& fstream);
std::string get_string(std::string const& name, std::string const& def);
int get_int(std::string const& name, std::string const& def);
bool get_bool(std::string const& name, std::string const& def);
2021-01-27 21:26:19 +00:00
};