SBSPSS/Utils/MapEdit/Export.h

57 lines
1.3 KiB
C
Raw Normal View History

2000-11-24 23:34:20 +01:00
/**************/
/*** Export ***/
/**************/
#ifndef __EXPORT_HEADER__
#define __EXPORT_HEADER__
#include "stdafx.h"
2000-12-01 22:08:54 +01:00
#include "mapedit.h"
2001-02-01 23:48:22 +01:00
#include <Vector>
2000-11-24 23:34:20 +01:00
2001-02-01 23:48:22 +01:00
#include <List.h>
#include "ExportHdr.h"
2000-11-24 23:34:20 +01:00
/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/
class CCore;
class CMap;
class CTile;
class CExport
{
public:
2001-02-07 22:31:31 +01:00
CExport(char *Filename);
2000-11-24 23:34:20 +01:00
~CExport();
2001-02-16 19:23:01 +01:00
void Write(void *Addr,int Len);
2001-03-26 23:29:09 +02:00
int ExportLayerHeader(sLayerDef &LayerDef);//int Type,int SubType,int Width,int Height);
2001-02-16 19:23:01 +01:00
int AddTile(sExpTile &Tile) {return(UsedTileList.Add(Tile));}
2001-01-24 23:35:11 +01:00
2001-02-01 23:48:22 +01:00
void ExportTiles(CCore *Core);
2001-02-06 23:25:39 +01:00
void ExportStrList(CCore *Core);
2000-11-24 23:34:20 +01:00
protected:
2001-02-06 23:25:39 +01:00
void ExportTile(CCore *Core,sExpTile &ThisElem);
2001-03-05 21:49:46 +01:00
void ExportTile3d(CCore *Core,CElem &ThisTile,sExpTile &OutTile);
void ExportTile2d(CCore *Core,CElem &ThisTile,sExpTile &OutTile);
2000-11-24 23:34:20 +01:00
2001-02-01 23:48:22 +01:00
sExpFileHdr FileHdr;
CList<int> LayerOfs;
2001-02-06 23:25:39 +01:00
CList<sExpTri> TriList;
2000-12-01 22:08:54 +01:00
2001-02-06 23:25:39 +01:00
CList<GString> SetNames;
CList<GString> TexNames;
2000-12-01 22:08:54 +01:00
2001-02-06 23:25:39 +01:00
CList<sExpTile> UsedTileList;
2001-02-01 23:48:22 +01:00
FILE *File;
2000-11-24 23:34:20 +01:00
};
/*****************************************************************************/
2000-11-30 23:17:55 +01:00
#endif