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 ```
38 lines
742 B
C
38 lines
742 B
C
#ifndef WORLD_DAT_H
|
|
#define WORLD_DAT_H
|
|
|
|
#include "types.h"
|
|
#include "tiledat.h"
|
|
#include "World Tileset Enums.h"
|
|
|
|
typedef void (*TILESET_CALLBACK)( void );
|
|
|
|
|
|
typedef struct
|
|
{
|
|
CHAR16 zName[ 32 ];
|
|
CHAR8 TileSurfaceFilenames[ NUMBEROFTILETYPES ][32];
|
|
UINT8 ubAmbientID;
|
|
TILESET_CALLBACK MovementCostFnc;
|
|
|
|
} TILESET;
|
|
|
|
// Snap: The maximum number of tilesets allowed is max of UINT8
|
|
#define MAX_TILESETS 255
|
|
|
|
extern UINT8 gubNumSets; // from WorldDat.cpp
|
|
|
|
extern TILESET gTilesets[ MAX_TILESETS ];
|
|
|
|
|
|
void InitEngineTilesets( );
|
|
|
|
|
|
// THESE FUNCTIONS WILL SET TERRAIN VALUES - CALL ONE FOR EACH TILESET
|
|
void SetTilesetOneTerrainValues( );
|
|
void SetTilesetTwoTerrainValues( );
|
|
|
|
|
|
|
|
#endif
|