summaryrefslogtreecommitdiff
path: root/src/serverenvironment.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-01-21 15:02:08 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commit2efae3ffd720095222c800e016286a45c9fe1e5c (patch)
tree3a8b19daa071cf742fee52d70a0e0adf94d56c0c /src/serverenvironment.h
parentc9492b4d37c11f35cfdc1558f771eef87fc5c972 (diff)
downloadminetest-2efae3ffd720095222c800e016286a45c9fe1e5c.tar.gz
minetest-2efae3ffd720095222c800e016286a45c9fe1e5c.tar.bz2
minetest-2efae3ffd720095222c800e016286a45c9fe1e5c.zip
[CSM] Client side modding
* rename GameScripting to ServerScripting * Make getBuiltinLuaPath static serverside * Add on_shutdown callback * Add on_receiving_chat_message & on_sending_chat_message callbacks * ScriptApiBase: use IGameDef instead of Server This permits to share common attribute between client & server * Enable mod security in client side modding without conditions
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r--src/serverenvironment.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h
index b7056c00c..b7796b5f1 100644
--- a/src/serverenvironment.h
+++ b/src/serverenvironment.h
@@ -33,7 +33,7 @@ class ServerEnvironment;
class ActiveBlockModifier;
class ServerActiveObject;
class Server;
-class GameScripting;
+class ServerScripting;
/*
{Active, Loading} block modifier interface.
@@ -194,7 +194,7 @@ typedef UNORDERED_MAP<u16, ServerActiveObject *> ActiveObjectMap;
class ServerEnvironment : public Environment
{
public:
- ServerEnvironment(ServerMap *map, GameScripting *scriptIface,
+ ServerEnvironment(ServerMap *map, ServerScripting *scriptIface,
Server *server, const std::string &path_world);
~ServerEnvironment();
@@ -203,7 +203,7 @@ public:
ServerMap & getServerMap();
//TODO find way to remove this fct!
- GameScripting* getScriptIface()
+ ServerScripting* getScriptIface()
{ return m_script; }
Server *getGameDef()
@@ -381,7 +381,7 @@ private:
// The map
ServerMap *m_map;
// Lua state
- GameScripting* m_script;
+ ServerScripting* m_script;
// Server definition
Server *m_server;
// World path