raze-gles/source/core/screenjob.h

32 lines
795 B
C
Raw Normal View History

#pragma once
#include <functional>
2020-06-27 09:48:55 +00:00
#include "dobject.h"
#include "v_2ddrawer.h"
#include "d_eventbase.h"
#include "s_soundinternal.h"
#include "gamestate.h"
2020-06-28 08:14:42 +00:00
using CompletionFunc = std::function<void(bool)>;
2020-06-27 09:48:55 +00:00
2021-04-26 21:10:38 +00:00
void Job_Init();
2021-04-21 22:18:53 +00:00
enum
{
SJ_BLOCKUI = 1,
SJ_DELAY = 2,
2021-04-21 22:18:53 +00:00
};
void EndScreenJob();
void DeleteScreenJob();
bool ScreenJobResponder(event_t* ev);
bool ScreenJobTick();
void ScreenJobDraw();
struct CutsceneDef;
struct MapRecord;
struct SummaryInfo;
bool StartCutscene(const char* s, int flags, const CompletionFunc& completion);
void PlayLogos(gameaction_t complete_ga, gameaction_t def_ga, bool stopmusic);
void ShowScoreboard(int numplayers, const CompletionFunc& completion_);
void ShowIntermission(MapRecord* fromMap, MapRecord* toMap, SummaryInfo* info, CompletionFunc completion_);