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 ```
30 lines
808 B
C
30 lines
808 B
C
#ifndef __ANIMATION_CACHE_H
|
|
#define __ANIMATION_CACHE_H
|
|
|
|
#include "types.h"
|
|
|
|
#define MAX_CACHE_SIZE 20
|
|
//#define MIN_CACHE_SIZE 2
|
|
#define MIN_CACHE_SIZE 4
|
|
|
|
|
|
typedef struct
|
|
{
|
|
UINT16 *usCachedSurfaces;
|
|
INT16 *sCacheHits;
|
|
UINT8 ubCacheSize;
|
|
|
|
} AnimationSurfaceCacheType;
|
|
|
|
extern UINT32 guiCacheSize;
|
|
|
|
BOOLEAN GetCachedAnimationSurface( UINT16 usSoldierID, AnimationSurfaceCacheType *pAnimCache, UINT16 usSurfaceIndex, UINT16 usCurrentAnimation );
|
|
BOOLEAN InitAnimationCache( UINT16 usSoldierID, AnimationSurfaceCacheType *pAnimCache );
|
|
void DeleteAnimationCache( UINT16 usSoldierID, AnimationSurfaceCacheType *pAnimCache );
|
|
void DetermineOptimumAnimationCacheSize( );
|
|
void UnLoadCachedAnimationSurfaces( UINT16 usSoldierID, AnimationSurfaceCacheType *pAnimCache );
|
|
|
|
|
|
|
|
#endif
|