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);
|
|
|
|
int ExportLayerHeader(int Type,int SubType,int Width,int Height);
|
|
|
|
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-02-01 23:48:22 +01:00
|
|
|
void ExportTile3d(CCore *Core,CTile &ThisTile,sExpTile &OutTile);
|
|
|
|
void ExportTile2d(CCore *Core,CTile &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
|
|
|
|
|