#define SERVER_ENVIRONMENT_HEADER
#include "environment.h"
+#include "mapnode.h"
+#include "mapblock.h"
+#include <set>
class IGameDef;
class ServerMap;
class ServerEnvironment;
class ActiveBlockModifier;
class ServerActiveObject;
+class Server;
+class GameScripting;
/*
{Active, Loading} block modifier interface.
{
public:
ServerEnvironment(ServerMap *map, GameScripting *scriptIface,
- IGameDef *gamedef, const std::string &path_world);
+ Server *server, const std::string &path_world);
~ServerEnvironment();
Map & getMap();
GameScripting* getScriptIface()
{ return m_script; }
- IGameDef *getGameDef()
- { return m_gamedef; }
+ Server *getGameDef()
+ { return m_server; }
float getSendRecommendedInterval()
{ return m_recommended_send_interval; }
ServerMap *m_map;
// Lua state
GameScripting* m_script;
- // Game definition
- IGameDef *m_gamedef;
+ // Server definition
+ Server *m_server;
// World path
const std::string m_path_world;
// Active object list