2001-04-07 23:05:33 +02:00
|
|
|
/*********************/
|
|
|
|
/*** Layer Trigger ***/
|
|
|
|
/*********************/
|
2001-04-06 21:03:58 +02:00
|
|
|
|
2001-04-07 23:05:33 +02:00
|
|
|
#ifndef __LAYER_TRIGGER_HEADER__
|
|
|
|
#define __LAYER_TRIGGER_HEADER__
|
2001-04-06 21:03:58 +02:00
|
|
|
|
|
|
|
#include "LayerThing.h"
|
|
|
|
#include "Layer.h"
|
|
|
|
#include "MapEdit.h"
|
2001-04-07 23:05:33 +02:00
|
|
|
#include "GUILayerTrigger.h"
|
2001-04-06 21:03:58 +02:00
|
|
|
#include "Elem.h"
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
2001-04-07 23:05:33 +02:00
|
|
|
class CLayerTrigger : public CLayerThing
|
2001-04-06 21:03:58 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2001-04-07 23:05:33 +02:00
|
|
|
CLayerTrigger(sLayerDef &Def);
|
|
|
|
CLayerTrigger(CFile *File,int Version) {Load(File,Version);}
|
2001-04-06 21:03:58 +02:00
|
|
|
|
|
|
|
void InitLayer(sLayerDef &Def);
|
|
|
|
void InitSubView(CCore *Core);
|
|
|
|
|
2001-04-30 23:49:54 +02:00
|
|
|
void LoadDefThing(const char *Name,sLayerThing &ThisDef);
|
|
|
|
void LoadOldThing(CFile *File,sLayerThing &ThisThing);
|
|
|
|
|
2001-04-06 21:03:58 +02:00
|
|
|
void GUIInit(CCore *Core);
|
|
|
|
void GUIKill(CCore *Core);
|
|
|
|
void GUIUpdate(CCore *Core);
|
|
|
|
void GUIChanged(CCore *Core);
|
|
|
|
bool GUIReady();
|
|
|
|
|
|
|
|
void GUIThingDefClear();
|
|
|
|
void GUIThingUpdate(bool OnlySel=false);
|
|
|
|
void GUIThingPointUpdate(bool OnlySel=false);
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
2001-04-07 23:05:33 +02:00
|
|
|
void RenderThing(CCore *Core,Vector3 &CamPos,sLayerThing &ThisThing,bool Render3d,bool Selected);
|
2001-04-06 21:03:58 +02:00
|
|
|
void SetThingParams(sLayerThing &Thing);
|
|
|
|
|
2001-04-07 23:05:33 +02:00
|
|
|
CGUILayerTrigger GUITrigger;
|
2001-04-06 21:03:58 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
#endif
|