Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
modeIncludeList.h
Go to the documentation of this file.
1
21
22//==============================================================================
23// Includes
24//==============================================================================
25
26/*
27 Quickly regenerate with:
28 grep -lirE '^extern swadgeMode_t (.*);' main | grep -oE '([^/]+\.h)' \
29 | grep -v quickSettings | awk '{printf "#include \"%s\"\n",$1 }' | sort
30*/
31
32#include "accelTest.h"
33#include "bouncy.h"
34#include "colorchord.h"
35#include "cosCrunch.h"
36#include "dance.h"
37#include "danceNetwork.h"
38#include "factoryTest.h"
39#include "gamepad.h"
40#include "introMode.h"
41#include "jukebox.h"
42#include "keebTest.h"
43#include "mainMenu.h"
44#include "mode_credits.h"
45#include "mode_diceroller.h"
46#include "mode_synth.h"
47#include "nameTest.h"
48#include "picross_menu.h"
49#include "roboRunner.h"
50#include "sequencerMode.h"
51#include "swadgedoku.h"
52#include "swadgeIt.h"
53#include "swadgePassTest.h"
54#include "touchTest.h"
55#include "trophyCase.h"
56#include "trophyTest.h"
57#include "tunernome.h"
58
59//==============================================================================
60// Function Prototypes
61//==============================================================================
62
68int modeListGetCount(void);
69
75void modeListSetMenu(menu_t* menu);
76
83int32_t getModeIdx(const swadgeMode_t* mode);
84
85//==============================================================================
86// Externs
87//==============================================================================
88
89extern swadgeMode_t* const allSwadgeModes[];
struct _menu_t menu_t
The underlying data for a menu. This fundamentally is a list of menuItem_t.
Definition menu.h:151
swadgeMode_t *const allSwadgeModes[]
Add swadgeMode_t pointers to this struct to include them in emulator and main menu.
Definition modeIncludeList.c:18
int modeListGetCount(void)
Gets the current number of swadgeModes present int he file.
Definition modeIncludeList.c:30
void modeListSetMenu(menu_t *menu)
Initializes a menu with all the current swadge modes.
Definition modeIncludeList.c:35
int32_t getModeIdx(const swadgeMode_t *mode)
Get the unique index of a mode.
Definition modeIncludeList.c:72
A struct of all the function pointers necessary for a swadge mode. If a mode does not need a particul...