1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

ServerEnvironment: Remove direct dependency on EmergeManager

This commit is contained in:
kwolekr 2014-02-09 16:36:30 -05:00
parent a0683b811c
commit 89f7dc1efd
6 changed files with 27 additions and 24 deletions

View file

@ -44,7 +44,6 @@ class ActiveBlockModifier;
class ServerActiveObject;
class ITextureSource;
class IGameDef;
class IBackgroundBlockEmerger;
class Map;
class ServerMap;
class ClientMap;
@ -194,8 +193,7 @@ class ServerEnvironment : public Environment
{
public:
ServerEnvironment(ServerMap *map, GameScripting *scriptIface,
IGameDef *gamedef,
IBackgroundBlockEmerger *emerger);
IGameDef *gamedef);
~ServerEnvironment();
Map & getMap();
@ -367,8 +365,6 @@ private:
GameScripting* m_script;
// Game definition
IGameDef *m_gamedef;
// Background block emerger (the EmergeManager, in practice)
IBackgroundBlockEmerger *m_emerger;
// Active object list
std::map<u16, ServerActiveObject*> m_active_objects;
// Outgoing network message buffer for active objects