Debian Codegraph @

prboom2/src/dsda/episode.h

raw
1 //
2 // Copyright(C) 2023 by Ryan Krafnick
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // DESCRIPTION:
15 // DSDA Episode
16 //
17
18 #ifndef __DSDA_EPISODE__
19 #define __DSDA_EPISODE__
20
21 #include "doomtype.h"
22
23 typedef struct {
24 char* map_lump;
25 char* name;
26 char* pic_name;
27 char key;
28 dboolean vanilla;
29 int start_map;
30 int start_episode;
31 } dsda_episode_t;
32
33 extern dsda_episode_t* episodes;
34 extern size_t num_episodes;
35
36 void dsda_AddOriginalEpisodes(void);
37 void dsda_AddCustomEpisodes(void);
38 void dsda_ClearEpisodes(void);
39 void dsda_AddEpisode(const char* map_lump, const char* name,
40 const char* pic_name, char key, dboolean vanilla);
41
42 #endif