aboutsummaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorWeblate <42@minetest.ru>2013-06-01 13:18:52 +0200
committerWeblate <42@minetest.ru>2013-06-01 13:18:52 +0200
commit1dfc2e02b3c358af4bb20bb3cb60ac7bd3ed1124 (patch)
tree54660f353f3342f89b6259ea6a5dfedfa20dc16f /src/environment.h
parentec039a3d123120f9918812b13f5971e94546b9af (diff)
parent64627817fcca52f20948c24b60ce192b218f6ce2 (diff)
downloadminetest-1dfc2e02b3c358af4bb20bb3cb60ac7bd3ed1124.tar.gz
minetest-1dfc2e02b3c358af4bb20bb3cb60ac7bd3ed1124.tar.bz2
minetest-1dfc2e02b3c358af4bb20bb3cb60ac7bd3ed1124.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/environment.h b/src/environment.h
index a3e43dbb4..a62173a11 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -50,6 +50,7 @@ class IGameDef;
class Map;
class ServerMap;
class ClientMap;
+class ScriptApi;
class Environment
{
@@ -190,7 +191,7 @@ public:
class ServerEnvironment : public Environment
{
public:
- ServerEnvironment(ServerMap *map, lua_State *L, IGameDef *gamedef,
+ ServerEnvironment(ServerMap *map, ScriptApi *iface, IGameDef *gamedef,
IBackgroundBlockEmerger *emerger);
~ServerEnvironment();
@@ -198,8 +199,9 @@ public:
ServerMap & getServerMap();
- lua_State* getLua()
- { return m_lua; }
+ //TODO find way to remove this fct!
+ ScriptApi* getScriptIface()
+ { return m_script; }
IGameDef *getGameDef()
{ return m_gamedef; }
@@ -348,7 +350,7 @@ private:
// The map
ServerMap *m_map;
// Lua state
- lua_State *m_lua;
+ ScriptApi* m_script;
// Game definition
IGameDef *m_gamedef;
// Background block emerger (the server, in practice)