-
Notifications
You must be signed in to change notification settings - Fork 2
/
pokemon_app.h
52 lines (42 loc) · 1.29 KB
/
pokemon_app.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef POKEMON_APP_H
#define POKEMON_APP_H
#pragma once
#include <gui/scene_manager.h>
#include <gui/view.h>
#include <gui/view_dispatcher.h>
#include <gui/icon.h>
#include <gui/modules/dialog_ex.h>
#include <gui/modules/submenu.h>
#include <gui/modules/text_input.h>
#include <gui/modules/variable_item_list.h>
#include <gblink.h>
#include "pokemon_data.h"
#define TAG "Pokemon"
struct pokemon_fap {
/* Various anonymous pointers for flipper UI/navigation */
ViewDispatcher* view_dispatcher;
SceneManager* scene_manager;
void* select;
void* trade;
Submenu* submenu;
TextInput* text_input;
VariableItemList* variable_item_list;
DialogEx* dialog_ex;
/* Struct for holding trade data */
/* NOTE: There may be some runtime memory savings by adding more intelligence
* to views/trade and slimming down this struct to only contain the single
* pokemon data rather than the full 6 member party data.
*/
PokemonData* pdata;
/* Pin definition to actual Game Link Cable interface */
struct gblink_pins pins;
};
typedef struct pokemon_fap PokemonFap;
typedef enum {
AppViewMainMenu,
AppViewOpts, // Generic view ID meant for module re-use
AppViewSelectPokemon,
AppViewTrade,
AppViewExitConfirm,
} AppView;
#endif /* POKEMON_APP_H */