diff --git a/Utils/MapEdit/LayerPlatform.cpp b/Utils/MapEdit/LayerPlatform.cpp new file mode 100644 index 000000000..22cf5e4ef --- /dev/null +++ b/Utils/MapEdit/LayerPlatform.cpp @@ -0,0 +1,95 @@ +/*******************/ +/*** Layer Actor ***/ +/*******************/ + +#include "stdafx.h" +#include +#include +#include +#include "GLEnabledView.h" + +#include "MapEdit.h" +#include "MapEditDoc.h" +#include "MapEditView.h" +#include "MainFrm.h" + +#include "Core.h" +#include "LayerThing.h" +#include "LayerActor.h" +#include "Utils.h" +#include "Export.h" + +/*****************************************************************************/ +/*****************************************************************************/ +/*****************************************************************************/ +// New Layer +CLayerActor::CLayerActor(int _SubType,int _Width,int _Height) : CLayerThing (_SubType,_Width,_Height) +{ + LoadThingScript("c:\\temp\\character.txt"); +} + +/*****************************************************************************/ +void CLayerActor::Load(CFile *File,int Version) +{ + CLayerThing::Load(File,Version); +} + +/*****************************************************************************/ +void CLayerActor::Save(CFile *File) +{ + CLayerThing::Save(File); +} + +/*****************************************************************************/ +void CLayerActor::InitSubView(CCore *Core) +{ +} + +/*****************************************************************************/ +void CLayerActor::LoadThingScript(const char *Filename) +{ + CLayerThing::LoadThingScript(Filename); +// CLayerThing::ThingScript.LoadAndImport(Filename); + +int Count=ThingScript.GetGroupCount(); + for (int i=0; iAddSet(Gfx); + } +} + +/*****************************************************************************/ +/*** Gui *********************************************************************/ +/*****************************************************************************/ +void CLayerActor::GUIInit(CCore *Core) +{ +// Core->GUIAdd(GUIToolBar,IDD_TOOLBAR); +} + +/*****************************************************************************/ +void CLayerActor::GUIKill(CCore *Core) +{ +// Core->GUIRemove(GUIToolBar,IDD_TOOLBAR); +} + +/*****************************************************************************/ +void CLayerActor::GUIUpdate(CCore *Core) +{ +} + +/*****************************************************************************/ +void CLayerActor::GUIChanged(CCore *Core) +{ +} + +/*****************************************************************************/ +/*****************************************************************************/ +/*****************************************************************************/ +void CLayerActor::Export(CCore *Core,CExport &Exp) +{ + +} diff --git a/Utils/MapEdit/LayerPlatform.h b/Utils/MapEdit/LayerPlatform.h new file mode 100644 index 000000000..e6b762fae --- /dev/null +++ b/Utils/MapEdit/LayerPlatform.h @@ -0,0 +1,48 @@ +/*******************/ +/*** Layer Actor ***/ +/*******************/ + +#ifndef __LAYER_ACTOR_HEADER__ +#define __LAYER_ACTOR_HEADER__ + +#include "LayerThing.h" +#include "Layer.h" +#include "MapEdit.h" +#include "GUIToolbar.h" +#include "Elem.h" + +/*****************************************************************************/ +class CLayerActor : public CLayerThing +{ +public: + + CLayerActor(){}; + CLayerActor(int SubType,int Width,int Height); // New Layer + CLayerActor(CFile *File,int Version); // Load Layer +// ~CLayerActor(); + + int GetType() {return(LAYER_TYPE_ACTOR);} + void InitSubView(CCore *Core); + +//virtual void Render(CCore *Core,Vector3 &CamPos,bool Is3d); +// void RenderCursor(CCore *Core,Vector3 &CamPos,bool Is3d); +// void FindCursorPos(CCore *Core,Vector3 &CamPos,CPoint &MousePos); + + void GUIInit(CCore *Core); + void GUIKill(CCore *Core); + void GUIUpdate(CCore *Core); + void GUIChanged(CCore *Core); + + void Load(CFile *File,int Version); + void Save(CFile *File); + void LoadThingScript(const char *Filename); + + void Export(CCore *Core,CExport &Exp); + +protected: + CGUIToolBar GUIToolBar; + +}; + +/*****************************************************************************/ +#endif