mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Original Source for 1.13 Mod High Resolution version from 12/06/05
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
#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( INT8 *cFilename );
|
||||
|
||||
BOOLEAN RemoveCachedTile( INT32 iCachedTile );
|
||||
|
||||
STRUCTURE_FILE_REF *GetCachedTileStructureRefFromFilename( INT8 *cFilename );
|
||||
|
||||
HVOBJECT GetCachedTileVideoObject( INT32 iIndex );
|
||||
STRUCTURE_FILE_REF *GetCachedTileStructureRef( INT32 iIndex );
|
||||
void CheckForAndAddTileCacheStructInfo( LEVELNODE *pNode, INT16 sGridNo, UINT16 usIndex, UINT16 usSubIndex );
|
||||
void CheckForAndDeleteTileCacheStructInfo( LEVELNODE *pNode, UINT16 usIndex );
|
||||
|
||||
void GetRootName( INT8 *pDestStr, INT8 *pSrcStr );
|
||||
|
||||
|
||||
// OF COURSE, FOR SPEED, WE EXPORT OUR ARRAY
|
||||
// ACCESS FUNCTIONS IN RENDERER IS NOT TOO NICE
|
||||
// ATE
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user