minecraft-pi-reborn/mods/src/server/server_properties.h
TheBrokenRail 0ccc05ad90
Some checks failed
minecraft-pi-reborn/pipeline/head There was a failure building this commit
Fixes
2021-01-27 16:26:19 -05:00

18 lines
414 B
C++

#pragma once
#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);
};