SBSPSS/Utils/MapEdit/LayerItem.cpp

102 lines
2.8 KiB
C++
Raw Normal View History

2001-03-13 15:37:04 +01:00
/******************/
2001-03-13 22:00:34 +01:00
/*** Layer Item ***/
2001-03-13 15:37:04 +01:00
/******************/
#include "stdafx.h"
#include <Vector3.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include "GLEnabledView.h"
#include "MapEdit.h"
#include "MapEditDoc.h"
#include "MapEditView.h"
#include "MainFrm.h"
#include "Core.h"
2001-03-26 23:29:09 +02:00
#include "LayerThing.h"
2001-03-13 22:00:34 +01:00
#include "LayerItem.h"
2001-03-13 15:37:04 +01:00
#include "Utils.h"
#include "Export.h"
/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/
// New Layer
2001-03-26 23:29:09 +02:00
CLayerItem::CLayerItem(sLayerDef &Def) : CLayerThing (Def)
2001-03-13 15:37:04 +01:00
{
2001-03-26 23:29:09 +02:00
LoadThingScript("c:\\temp\\character.txt");
2001-03-13 15:37:04 +01:00
}
/*****************************************************************************/
2001-03-26 23:29:09 +02:00
//CLayerItem::CLayerItem(CFile *File,int Version) :CLayerThing (File,Version)
//{
//
//}
2001-03-13 15:37:04 +01:00
/*****************************************************************************/
2001-03-26 23:29:09 +02:00
void CLayerItem::Load(CFile *File,int Version)
2001-03-13 15:37:04 +01:00
{
2001-03-26 23:29:09 +02:00
CLayerThing::Load(File,Version);
2001-03-13 15:37:04 +01:00
}
/*****************************************************************************/
2001-03-26 23:29:09 +02:00
void CLayerItem::Save(CFile *File)
2001-03-13 15:37:04 +01:00
{
2001-03-26 23:29:09 +02:00
CLayerThing::Save(File);
2001-03-13 15:37:04 +01:00
}
/*****************************************************************************/
2001-03-13 22:00:34 +01:00
void CLayerItem::InitSubView(CCore *Core)
2001-03-13 15:37:04 +01:00
{
}
/*****************************************************************************/
2001-03-26 23:29:09 +02:00
void CLayerItem::LoadThingScript(const char *Filename)
2001-03-13 15:37:04 +01:00
{
2001-03-26 23:29:09 +02:00
CLayerThing::LoadThingScript(Filename);
// CLayerThing::ThingScript.LoadAndImport(Filename);
2001-03-13 15:37:04 +01:00
2001-03-26 23:29:09 +02:00
int Count=ThingScript.GetGroupCount();
for (int i=0; i<Count; i++)
2001-03-13 15:37:04 +01:00
{
2001-03-26 23:29:09 +02:00
char *Name=ThingScript.GetGroupName(i);
char *Gfx=ThingScript.GetData(Name,"gfx");
TRACE2("%s\t\t%s\n",Name,Gfx);
if (Gfx)
ThingBank->AddSet(Gfx);
2001-03-13 15:37:04 +01:00
}
}
/*****************************************************************************/
/*** Gui *********************************************************************/
/*****************************************************************************/
2001-03-13 22:00:34 +01:00
void CLayerItem::GUIInit(CCore *Core)
2001-03-13 15:37:04 +01:00
{
2001-03-26 23:29:09 +02:00
// Core->GUIAdd(GUIToolBar,IDD_TOOLBAR);
2001-03-13 15:37:04 +01:00
}
/*****************************************************************************/
2001-03-13 22:00:34 +01:00
void CLayerItem::GUIKill(CCore *Core)
2001-03-13 15:37:04 +01:00
{
2001-03-26 23:29:09 +02:00
// Core->GUIRemove(GUIToolBar,IDD_TOOLBAR);
2001-03-13 15:37:04 +01:00
}
/*****************************************************************************/
2001-03-13 22:00:34 +01:00
void CLayerItem::GUIUpdate(CCore *Core)
2001-03-13 15:37:04 +01:00
{
}
/*****************************************************************************/
2001-03-13 22:00:34 +01:00
void CLayerItem::GUIChanged(CCore *Core)
2001-03-13 15:37:04 +01:00
{
}
/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/
2001-03-13 22:00:34 +01:00
void CLayerItem::Export(CCore *Core,CExport &Exp)
2001-03-13 15:37:04 +01:00
{
}