device->getSceneManager()->getRootSceneNode(),
device->getSceneManager(), 666),
device->getSceneManager(),
- tsrc, this, device
+ tsrc, this
),
m_particle_manager(&m_env),
m_con(PROTOCOL_ID, 512, CONNECTION_TIMEOUT, ipv6, this),
*/
ClientEnvironment::ClientEnvironment(ClientMap *map, scene::ISceneManager *smgr,
- ITextureSource *texturesource, Client *client,
- IrrlichtDevice *irr):
+ ITextureSource *texturesource, Client *client):
Environment(client),
m_map(map),
m_smgr(smgr),
m_texturesource(texturesource),
- m_client(client),
- m_irr(irr)
+ m_client(client)
{
char zero = 0;
memset(attachement_parent_ids, zero, sizeof(attachement_parent_ids));
#ifndef CLIENT_ENVIRONMENT_HEADER
#define CLIENT_ENVIRONMENT_HEADER
-#include <IrrlichtDevice.h>
#include <ISceneManager.h>
#include "environment.h"
#include "clientobject.h"
{
public:
ClientEnvironment(ClientMap *map, scene::ISceneManager *smgr,
- ITextureSource *texturesource, Client *client,
- IrrlichtDevice *device);
+ ITextureSource *texturesource, Client *client);
~ClientEnvironment();
Map & getMap();
ITextureSource *m_texturesource;
Client *m_client;
ClientScripting *m_script = nullptr;
- IrrlichtDevice *m_irr;
ClientActiveObjectMap m_active_objects;
std::vector<ClientSimpleObject*> m_simple_objects;
std::queue<ClientEnvEvent> m_client_event_queue;
return 2;
}
-LuaVoxelManip::LuaVoxelManip(MMVManip *mmvm, bool is_mg_vm) : vm(mmvm), is_mapgen_vm(is_mg_vm)
+LuaVoxelManip::LuaVoxelManip(MMVManip *mmvm, bool is_mg_vm) :
+ is_mapgen_vm(is_mg_vm),
+ vm(mmvm)
{
}