gzdoom/src/g_level.h

42 lines
1 KiB
C
Raw Normal View History

#pragma once
2016-03-01 15:47:10 +00:00
#include "doomtype.h"
#include "vectors.h"
2016-03-01 15:47:10 +00:00
#include "sc_man.h"
#include "file_zip.h"
#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 FNewGameStartup;
void G_DeferedInitNew (FNewGameStartup *gs);
2016-03-01 15:47:10 +00:00
enum
{
CHANGELEVEL_KEEPFACING = 1,
CHANGELEVEL_RESETINVENTORY = 2,
CHANGELEVEL_NOMONSTERS = 4,
CHANGELEVEL_CHANGESKILL = 8,
CHANGELEVEL_NOINTERMISSION = 16,
CHANGELEVEL_RESETHEALTH = 32,
CHANGELEVEL_PRERAISEWEAPON = 64,
};
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 *);
void G_WriteSnapshots (TArray<FString> &, TArray<FCompressedBuffer> &);
void G_WriteVisited(FSerializer &arc);
void G_ReadVisited(FSerializer &arc);
2016-03-01 15:47:10 +00:00
void G_ClearHubInfo();