Files
source/Tactical/Enemy Soldier Save.h
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

26 lines
912 B
C

#ifndef __ENEMY_SOLDIER_SAVE_H
#define __ENEMY_SOLDIER_SAVE_H
#include "FileMan.h"
//This funciton load both the enemies AND the civilians, now only used to load old saves
BOOLEAN LoadEnemySoldiersFromTempFile();
//The new way of loading in enemies from the temp file. ONLY the ENEMIES are stored in the e_* temp file
BOOLEAN NewWayOfLoadingEnemySoldiersFromTempFile();
//The new way of loading in CIVILIANS from the temp file. ONLY the CIVILIEANS are stored in the c_* temp file
BOOLEAN NewWayOfLoadingCiviliansFromTempFile();
BOOLEAN NewWayOfSavingEnemyAndCivliansToTempFile( INT16 sSectorX, INT16 sSectorY, INT8 bSectorZ, BOOLEAN fEnemy, BOOLEAN fValidateOnly );
BOOLEAN SaveEnemySoldiersToTempFile( INT16 sSectorX, INT16 sSectorY, INT8 bSectorZ, UINT8 ubFirstIdTeam, UINT8 ubLastIdTeam, BOOLEAN fAppendToFile );
extern BOOLEAN gfRestoringEnemySoldiersFromTempFile;
#endif