mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Changed: Starting to change the zone manager to handle loading, saving and displaying zones.
This commit is contained in:
parent
334b76a0dd
commit
511d735dc9
2 changed files with 13 additions and 10 deletions
|
@ -19,6 +19,8 @@
|
||||||
|
|
||||||
namespace Plugin
|
namespace Plugin
|
||||||
{
|
{
|
||||||
|
NLMISC_SAFE_SINGLETON_IMPL(CZoneManager)
|
||||||
|
|
||||||
ZonePainterPlugin::~ZonePainterPlugin()
|
ZonePainterPlugin::~ZonePainterPlugin()
|
||||||
{
|
{
|
||||||
Q_FOREACH(QObject *obj, _autoReleaseObjects)
|
Q_FOREACH(QObject *obj, _autoReleaseObjects)
|
||||||
|
|
|
@ -7,10 +7,12 @@
|
||||||
#include "zone_painter_main_window.h"
|
#include "zone_painter_main_window.h"
|
||||||
|
|
||||||
// NeL includes
|
// 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/landscape.h>
|
||||||
#include <nel/3d/patch.h>
|
#include <nel/3d/patch.h>
|
||||||
#include <nel/3d/zone.h>
|
#include <nel/3d/zone.h>
|
||||||
|
#include <nel/3d/u_scene.h>
|
||||||
|
|
||||||
// Qt includes
|
// Qt includes
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
|
@ -29,16 +31,15 @@ class IPluginSpec;
|
||||||
namespace Plugin
|
namespace Plugin
|
||||||
{
|
{
|
||||||
|
|
||||||
class CZoneManager {
|
class CZoneManager
|
||||||
|
{
|
||||||
|
NLMISC_SAFE_SINGLETON_DECL(CZoneManager)
|
||||||
public:
|
public:
|
||||||
NL3D::CZone zone;
|
//m_painterLandscape = static_cast<NL3D::CLandscapeModel *>
|
||||||
|
|
||||||
std::string getZoneInfo() {
|
private:
|
||||||
NL3D::CZone zone;
|
NL3D::CLandscapeModel *m_painterLandscape;
|
||||||
zone.getNumPatchs();
|
NL3D::CZone *m_currentZone;
|
||||||
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class ZonePainterPlugin : public QObject, public ExtensionSystem::IPlugin
|
class ZonePainterPlugin : public QObject, public ExtensionSystem::IPlugin
|
||||||
|
|
Loading…
Reference in a new issue