2015-02-02 11:52:15 -08:00
|
|
|
#ifndef MINETEST_HPP_INCLUDED
|
|
|
|
#define MINETEST_HPP_INCLUDED
|
|
|
|
|
|
|
|
#include "common.hpp"
|
2015-02-04 09:44:37 -08:00
|
|
|
#include "EditorState.hpp"
|
2015-02-02 11:52:15 -08:00
|
|
|
#include "Configuration.hpp"
|
|
|
|
|
|
|
|
class Minetest
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Minetest(Configuration *conf);
|
2015-02-05 08:28:45 -08:00
|
|
|
bool findMinetest(bool editor_is_installed);
|
2015-02-04 09:44:37 -08:00
|
|
|
bool runMod(EditorState *state, const std::string &world = "nbe_test");
|
2015-02-02 11:52:15 -08:00
|
|
|
private:
|
2015-02-03 11:36:09 -08:00
|
|
|
bool findMinetestDir(std::string path);
|
|
|
|
|
2015-02-02 11:52:15 -08:00
|
|
|
Configuration *_conf;
|
|
|
|
std::string minetest_dir;
|
2015-02-02 12:00:33 -08:00
|
|
|
std::string minetest_exe;
|
2015-02-02 11:52:15 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|