Changed: Starting to change the zone manager to handle loading, saving and displaying zones.

This commit is contained in:
sfb 2011-05-31 09:28:10 -05:00
parent d5a02b382f
commit dcc07f7525
2 changed files with 13 additions and 10 deletions

View file

@ -19,6 +19,8 @@
namespace Plugin
{
NLMISC_SAFE_SINGLETON_IMPL(CZoneManager)
ZonePainterPlugin::~ZonePainterPlugin()
{
Q_FOREACH(QObject *obj, _autoReleaseObjects)

View file

@ -7,10 +7,12 @@
#include "zone_painter_main_window.h"
// NeL includes
#include "nel/misc/app_context.h"
#include <nel/misc/app_context.h>
#include <nel/misc/singleton.h>
#include <nel/3d/landscape.h>
#include <nel/3d/patch.h>
#include <nel/3d/zone.h>
#include <nel/3d/u_scene.h>
// Qt includes
#include <QtCore/QObject>
@ -29,16 +31,15 @@ class IPluginSpec;
namespace Plugin
{
class CZoneManager {
class CZoneManager
{
NLMISC_SAFE_SINGLETON_DECL(CZoneManager)
public:
NL3D::CZone zone;
std::string getZoneInfo() {
NL3D::CZone zone;
zone.getNumPatchs();
return "";
}
//m_painterLandscape = static_cast<NL3D::CLandscapeModel *>
private:
NL3D::CLandscapeModel *m_painterLandscape;
NL3D::CZone *m_currentZone;
};
class ZonePainterPlugin : public QObject, public ExtensionSystem::IPlugin