2012-07-16 17:47:06 +02:00
|
|
|
/*
|
2019-08-03 19:43:48 +02:00
|
|
|
* This software is licensed under the terms of the MIT License.
|
2017-02-11 04:52:08 +01:00
|
|
|
* See COPYING for further information.
|
2012-07-16 17:47:06 +02:00
|
|
|
* ---
|
2024-05-16 23:30:41 +02:00
|
|
|
* Copyright (c) 2011-2024, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2024, Andrei Alexeyev <akari@taisei-project.org>.
|
2012-07-16 17:47:06 +02:00
|
|
|
*/
|
2011-07-02 11:39:36 +02:00
|
|
|
|
2021-08-12 23:09:01 +02:00
|
|
|
#pragma once
|
2017-11-25 20:45:11 +01:00
|
|
|
#include "taisei.h"
|
2011-07-02 11:39:36 +02:00
|
|
|
|
|
|
|
#include "menu.h"
|
|
|
|
|
2024-05-03 04:18:27 +02:00
|
|
|
typedef enum GameoverMenuAction {
|
|
|
|
GAMEOVERMENU_ACTION_DEFAULT,
|
|
|
|
GAMEOVERMENU_ACTION_RESTART,
|
|
|
|
GAMEOVERMENU_ACTION_QUIT,
|
|
|
|
GAMEOVERMENU_ACTION_CONTINUE,
|
|
|
|
GAMEOVERMENU_ACTION_QUICKLOAD,
|
|
|
|
} GameoverMenuAction;
|
|
|
|
|
|
|
|
typedef struct GameoverMenuParams {
|
|
|
|
GameoverMenuAction *output;
|
|
|
|
bool quickload_shown;
|
|
|
|
bool quickload_enabled;
|
|
|
|
} GameoverMenuParams;
|
|
|
|
|
|
|
|
MenuData *create_gameover_menu(const GameoverMenuParams *params)
|
|
|
|
attr_nonnull_all attr_returns_allocated;
|