2019-02-01 18:20:58 +00:00
|
|
|
#pragma once
|
2016-03-01 15:47:10 +00:00
|
|
|
|
|
|
|
#include "doomtype.h"
|
2018-04-01 16:45:27 +00:00
|
|
|
#include "vectors.h"
|
2016-03-01 15:47:10 +00:00
|
|
|
#include "sc_man.h"
|
2016-09-20 23:48:23 +00:00
|
|
|
#include "resourcefiles/file_zip.h"
|
2019-02-01 18:20:58 +00:00
|
|
|
#include "g_mapinfo.h"
|
2016-03-01 15:47:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
extern bool savegamerestore;
|
|
|
|
|
|
|
|
void G_InitNew (const char *mapname, bool bTitleLevel);
|
|
|
|
|
|
|
|
// Can be called by the startup code or M_Responder.
|
|
|
|
// A normal game starts at map 1,
|
|
|
|
// but a warp test can start elsewhere
|
|
|
|
void G_DeferedInitNew (const char *mapname, int skill = -1);
|
|
|
|
struct FGameStartup;
|
|
|
|
void G_DeferedInitNew (FGameStartup *gs);
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
CHANGELEVEL_KEEPFACING = 1,
|
|
|
|
CHANGELEVEL_RESETINVENTORY = 2,
|
|
|
|
CHANGELEVEL_NOMONSTERS = 4,
|
|
|
|
CHANGELEVEL_CHANGESKILL = 8,
|
|
|
|
CHANGELEVEL_NOINTERMISSION = 16,
|
|
|
|
CHANGELEVEL_RESETHEALTH = 32,
|
|
|
|
CHANGELEVEL_PRERAISEWEAPON = 64,
|
|
|
|
};
|
|
|
|
|
2019-01-29 01:39:14 +00:00
|
|
|
void G_DoLoadLevel (const FString &MapName, int position, bool autosave, bool newGame);
|
2016-03-01 15:47:10 +00:00
|
|
|
|
|
|
|
void G_ClearSnapshots (void);
|
|
|
|
void P_RemoveDefereds ();
|
2016-09-21 23:28:05 +00:00
|
|
|
void G_ReadSnapshots (FResourceFile *);
|
2016-09-21 15:37:56 +00:00
|
|
|
void G_WriteSnapshots (TArray<FString> &, TArray<FCompressedBuffer> &);
|
|
|
|
void G_WriteVisited(FSerializer &arc);
|
2016-09-21 22:18:31 +00:00
|
|
|
void G_ReadVisited(FSerializer &arc);
|
2016-03-01 15:47:10 +00:00
|
|
|
void G_ClearHubInfo();
|
|
|
|
|