mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
.editorconfig already enforces it but it's getting changed piecemeal in every commit. just get it done with. the script: ``` find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do isFile=$(file -0 "$file" | cut -d $'\0' -f2) case "$isFile" in (*text*) echo "$file is text" if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then echo "" >> "$file" fi ;; (*) echo "file isn't text" ;; esac done ```
49 lines
1.2 KiB
C
49 lines
1.2 KiB
C
#ifndef __TILE_CACHE_H
|
|
#define __TILE_CACHE_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, INT8 bLevel, UINT16 usIndex, UINT16 usSubIndex );
|
|
void CheckForAndDeleteTileCacheStructInfo( LEVELNODE *pNode, UINT16 usIndex );
|
|
|
|
void GetRootName( STR8 pDestStr, const STR8 pSrcStr );
|
|
|
|
#endif
|