Files
source/TileEngine/Tile Cache.h
T
Wanne 14750c6903 **********************************************************
** Big Maps Projects code (incl. Multiplayer v1.5 **
**********************************************************
- Merged Big Maps Project code from BMP+MP trunk (Revision: 3340)
o Complete SVN Revision history: https://81.169.133.124/source/ja2/branches/Wanne/JA2%201.13%20MP
- Before THIS merge, I made a branch of the existing 1.13 source
o SVN Branch: https://81.169.133.124/source/ja2/branches/JA2_rev.3336/src
- Removed old VS 6.0 and VS 2003 project and solutions files, because compilation is broken long time ago
- I will add VS 2010 projects and solution file in the next few days

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3341 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2010-02-28 18:38:52 +00:00

57 lines
1.3 KiB
C

#ifndef __TILE_CACHE_H
#define __TILE_CACHE_H
#include "tiledef.h"
#include "structure.h"
#define TILE_CACHE_START_INDEX 36000
typedef struct
{
CHAR8 zName[ 128 ]; // Name of tile ( filename and directory here )
CHAR8 zRootName[ 30 ]; // Root name
TILE_IMAGERY *pImagery; // Tile imagery
INT16 sHits;
UINT8 ubNumFrames;
INT16 sStructRefID;
} TILE_CACHE_ELEMENT;
typedef struct
{
CHAR8 Filename[ 150 ];
CHAR8 zRootName[ 30 ]; // Root name
STRUCTURE_FILE_REF * pStructureFileRef;
} TILE_CACHE_STRUCT;
extern TILE_CACHE_ELEMENT *gpTileCache;
BOOLEAN InitTileCache( );
void DeleteTileCache( );
INT32 GetCachedTile( const STR8 cFilename );
BOOLEAN RemoveCachedTile( INT32 iCachedTile );
STRUCTURE_FILE_REF *GetCachedTileStructureRefFromFilename( const STR8 cFilename );
HVOBJECT GetCachedTileVideoObject( INT32 iIndex );
STRUCTURE_FILE_REF *GetCachedTileStructureRef( INT32 iIndex );
void CheckForAndAddTileCacheStructInfo( LEVELNODE *pNode, INT32 sGridNo, UINT16 usIndex, UINT16 usSubIndex );
void CheckForAndDeleteTileCacheStructInfo( LEVELNODE *pNode, UINT16 usIndex );
void GetRootName( STR8 pDestStr, const STR8 pSrcStr );
// OF COURSE, FOR SPEED, WE EXPORT OUR ARRAY
// ACCESS FUNCTIONS IN RENDERER IS NOT TOO NICE
// ATE
#endif