SBSPSS/Utils/MapEdit/ExportHdr.h

102 lines
2.0 KiB
C
Raw Normal View History

2001-02-01 15:46:51 +01:00
/**********************/
/*** Export Structs ***/
/**********************/
#ifndef __EXPORT_STRUCTS_HEADER__
#define __EXPORT_STRUCTS_HEADER__
#include <Vector>
//#include "GinTex.h"
//#include "Tile.h"
#include <List.h>
/*****************************************************************************/
2001-02-07 22:31:31 +01:00
#define EXPORT_LAYER_COUNT 8
2001-02-01 15:46:51 +01:00
struct sExpFileHdr
{
int TileCount;
int TileOfs;
2001-02-06 23:25:39 +01:00
int TileW,TileH;
2001-02-01 15:46:51 +01:00
int TriCount;
int TriOfs;
2001-02-06 23:25:39 +01:00
int SetNameCount;
int SetNameOfs;
int TexNameCount;
int TexNameOfs;
2001-02-01 15:46:51 +01:00
int LayerCount;
2001-02-07 22:31:31 +01:00
int LayerOfs[EXPORT_LAYER_COUNT];
2001-02-01 15:46:51 +01:00
};
/*****************************************************************************/
2001-02-06 23:25:39 +01:00
struct sExpTile
2001-02-01 15:46:51 +01:00
{
2001-02-06 23:25:39 +01:00
int Set;
int Tile;
int TriStart;
int TriCount;
u16 XOfs,YOfs;
u8 *RGB;
// int TexId; // n -1
// int Flags; // Flip Flags
bool operator==(sExpTile const &v1)
{
return(Set==v1.Set && Tile==v1.Tile);
}
};
/*****************************************************************************/
struct sExpTri
{
int TexID;
Vector3 vtx[3];
float uv[3][2];
2001-02-01 15:46:51 +01:00
};
/*****************************************************************************/
/*****************************************************************************/
/*****************************************************************************/
struct sExpLayerHdr
{
int Type;
int SubType;
int Width;
int Height;
};
/*****************************************************************************/
struct sExpLayerTile
{
2001-02-06 23:25:39 +01:00
u16 Tile;
u16 Flags;
// bool operator==(sExpLayerTile const &v1) {return (Tile==v1.Tile);}
2001-02-01 15:46:51 +01:00
};
/*****************************************************************************/
2001-02-06 23:25:39 +01:00
/*
2001-02-01 15:46:51 +01:00
struct sExpTex
{
char *Filename;
BOOL operator==(sExpTex const &v1) {return (!strcmp(Filename,v1.Filename));}
};
2001-02-06 23:25:39 +01:00
*/
/*
2001-02-01 15:46:51 +01:00
struct sExpMapElem
{
2001-02-06 23:25:39 +01:00
u16 Set;
u16 Tile;
u16 Flags;
2001-02-01 15:46:51 +01:00
2001-02-06 23:25:39 +01:00
BOOL operator==(sExpMapElem const &v1)
2001-02-01 15:46:51 +01:00
{
2001-02-02 20:18:13 +01:00
return(Set==v1.Set && Tile==v1.Tile);
2001-02-01 15:46:51 +01:00
}
};
2001-02-06 23:25:39 +01:00
*/
2001-02-01 15:46:51 +01:00
/*****************************************************************************/
#endif