Files
source/TileEngine/WorldDat.h
T
Marco Antonio J. Costaandmajcosta 86ad401186 add newline at end of file where it's lacking
.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
```
2024-12-14 19:05:48 -03:00

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