Jump to content

WED fileformat


Avenger

Recommended Posts

WED_WedHeader_st

DWORD nFileType;

DWORD nFileVersion;

DWORD nLayers;

DWORD nTiledObjects;

DWORD nOffsetToLayerHeaders;

DWORD nOffsetToPolyHeader;

DWORD nOffsetToTiledObjects;

DWORD nOffsetToObjectTileList;

WORD nVisiblityRange;

WORD nChanceOfRain;

WORD nChanceOfFog;

WORD nChanceOfSnow;

DWORD dwFlags;

 

 

WED_LayerHeader_st

WORD nTilesAcross;

WORD nTilesDown;

RESREF rrTileSet;

WORD nNumUniqueTiles;

WORD nMovementType;

DWORD nOffsetToTileData;

DWORD nOffsetToTileList;

 

 

WED_PolyHeader_st

DWORD nPolys;

DWORD nOffsetToPolyList;

DWORD nOffsetToPointList;

DWORD nOffsetToScreenSectionList;

DWORD nOffsetToScreenPolyList;

 

WED_TiledObject_st

RESREF resID;

WORD bType;

WORD nStartingTile;

WORD nNumTiles;

WORD nNumPrimaryPolys;

WORD nNumSecondaryPolys;

DWORD nOffsetToPrimaryPolys;

DWORD nOffsetToSecondaryPolys;

 

WED_TileData_st

WORD nStartingTile;

WORD nNumTiles;

short nSecondary;

BYTE bFlags;

BYTE bAnimSpeed;

WORD wFlags;

 

WED_ScreenSectionList

WORD nStartingPoly;

WORD nNumPolys;

 

 

WED_PolyList_st

DWORD nStartingPoint;

DWORD nNumPoints;

BYTE nType;

BYTE nHeight;

WORD nLeft;

WORD nRight;

WORD nTop;

WORD nBottom;

// BYTE wFlags;

 

WED_PolyPoint_st

WORD x;

WORD y;

 

 

WED_DAYNIGHT_ENABLED 0x00000001

WED_WEATHER_ENABLED 0x00000002

WED_MAINCLEAR 0x01

WED_SUBLAYER1ENABLED 0x02

WED_SUBLAYER2ENABLED 0x04

WED_SUBLAYER3ENABLED 0x08

WED_SUBLAYER4ENABLED 0x10

WED_SUBLAYERSENABLED 0x1E

 

WED_POLYTYPE_HORIZONTAL 0x00

WED_POLYTYPE_VERTICAL 0x01

WED_POLYTYPE_NORMAL 0x00

WED_POLYTYPE_TILED 0x80

 

WED_TILEDOBJECT_TYPE_NORMAL 0x00;

WED_TILEDOBJECT_TYPE_DOOR 0x01;

 

WED_GETMAINCLEAR(a) ((a) & WED_MAINCLEAR)

WED_GETSUBLAYER1ENABLED(a) ((a) & WED_SUBLAYER1ENABLED)

WED_GETSUBLAYER2ENABLED(a) ((a) & WED_SUBLAYER2ENABLED)

WED_GETSUBLAYER3ENABLED(a) ((a) & WED_SUBLAYER3ENABLED)

WED_GETSUBLAYER4ENABLED(a) ((a) & WED_SUBLAYER4ENABLED)

WED_GETSUBLAYERSENABLED(a) ((a) & WED_SUBLAYERSENABLED)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...