| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "iscript.h" |
| 4 |
#include "iscriptinterface.h" |
| 5 |
#include "igame.h" |
| 6 |
#include <vector> |
| 7 |
|
| 8 |
namespace script |
| 9 |
{ |
| 10 |
|
| 11 |
class ScriptGame |
| 12 |
{ |
| 13 |
game::IGamePtr _game; |
| 14 |
public: |
| 15 |
ScriptGame(const game::IGamePtr& game); |
| 16 |
|
| 17 |
std::string getKeyValue(const std::string& key) const; |
| 18 |
}; |
| 19 |
|
| 20 |
class GameInterface : |
| 21 |
public IScriptInterface |
| 22 |
{ |
| 23 |
public: |
| 24 |
// Redefine the path list to be of type std::vector |
| 25 |
typedef std::vector<std::string> PathList; |
| 26 |
|
| 27 |
std::string getUserEnginePath(); |
| 28 |
std::string getModPath(); |
| 29 |
std::string getModBasePath(); |
| 30 |
ScriptGame currentGame(); |
| 31 |
PathList getVFSSearchPaths(); |
| 32 |
|
| 33 |
// IScriptInterface implementation |
| 34 |
void registerInterface(py::module& scope, py::dict& globals) override; |
| 35 |
}; |
| 36 |
|
| 37 |
} // namespace script |