|
|
|
@ -18,6 +18,7 @@
|
|
|
|
|
|
|
|
|
|
#include "model/doc/document.hpp"
|
|
|
|
|
#include "model/world/data.hpp"
|
|
|
|
|
#include "view/render/overlaysystem.hpp"
|
|
|
|
|
|
|
|
|
|
CS::Editor::Editor (OgreInit::OgreInit& ogreInit)
|
|
|
|
|
: mUserSettings (mCfgMgr), mDocumentManager (mCfgMgr), mViewManager (mDocumentManager),
|
|
|
|
@ -65,6 +66,11 @@ CS::Editor::Editor (OgreInit::OgreInit& ogreInit)
|
|
|
|
|
this, SLOT (createNewGame (const boost::filesystem::path&)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CS::Editor::~Editor ()
|
|
|
|
|
{
|
|
|
|
|
CSVRender::OverlaySystem::instance().destroy(); // destruct before Ogre::Root
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CS::Editor::setupDataFiles (const Files::PathContainer& dataDirs)
|
|
|
|
|
{
|
|
|
|
|
for (Files::PathContainer::const_iterator iter = dataDirs.begin(); iter != dataDirs.end(); ++iter)
|
|
|
|
|