liblcf
Loading...
Searching...
No Matches
rpg_savesystem.h
Go to the documentation of this file.
1/* !!!! GENERATED FILE - DO NOT EDIT !!!!
2 * --------------------------------------
3 *
4 * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
5 * https://github.com/EasyRPG/liblcf - https://easyrpg.org
6 *
7 * liblcf is Free/Libre Open Source Software, released under the MIT License.
8 * For the full copyright and license information, please view the COPYING
9 * file that was distributed with this source code.
10 */
11
12#ifndef LCF_RPG_SAVESYSTEM_H
13#define LCF_RPG_SAVESYSTEM_H
14
15// Headers
16#include <stdint.h>
17#include <string>
18#include <vector>
19#include "enum_tags.h"
20#include "rpg_music.h"
21#include "rpg_sound.h"
22
26namespace RPG {
27 class SaveSystem {
28 public:
29 enum Scene {
38 Scene_debug = 8
39 };
40 static constexpr auto kSceneTags = makeEnumTags<Scene>(
41 "map",
42 "menu",
43 "battle",
44 "shop",
45 "name",
46 "file",
47 "title",
48 "game_over",
49 "debug"
50 );
51 enum AtbMode {
54 };
55 static constexpr auto kAtbModeTags = makeEnumTags<AtbMode>(
56 "atb_active",
57 "atb_wait"
58 );
59
60 void Setup();
61 void Fixup();
62 void UnFixup();
63 int32_t scene = 0;
64 int32_t frame_count = 0;
65 std::string graphics_name;
66 int32_t message_stretch = 0;
67 int32_t font_id = 0;
68 std::vector<bool> switches;
69 std::vector<int32_t> variables;
71 int32_t message_position = 2;
74 std::string face_name;
75 int32_t face_id = 0;
76 bool face_right = false;
77 bool face_flip = false;
78 bool message_active = false;
79 bool music_stopping = false;
104 int8_t transition_out = -1;
105 int8_t transition_in = -1;
109 int8_t battle_end_fadein = -1;
110 bool teleport_allowed = true;
111 bool escape_allowed = true;
112 bool save_allowed = true;
113 bool menu_allowed = true;
114 std::string background;
115 int32_t save_count = 0;
116 int32_t save_slot = 1;
117 int32_t atb_mode = 0;
118 };
119
120 inline bool operator==(const SaveSystem& l, const SaveSystem& r) {
121 return l.scene == r.scene
122 && l.frame_count == r.frame_count
125 && l.font_id == r.font_id
126 && l.switches == r.switches
127 && l.variables == r.variables
132 && l.face_name == r.face_name
133 && l.face_id == r.face_id
134 && l.face_right == r.face_right
135 && l.face_flip == r.face_flip
138 && l.title_music == r.title_music
139 && l.battle_music == r.battle_music
141 && l.inn_music == r.inn_music
145 && l.stored_music == r.stored_music
146 && l.boat_music == r.boat_music
147 && l.ship_music == r.ship_music
150 && l.cursor_se == r.cursor_se
151 && l.decision_se == r.decision_se
152 && l.cancel_se == r.cancel_se
153 && l.buzzer_se == r.buzzer_se
154 && l.battle_se == r.battle_se
155 && l.escape_se == r.escape_se
159 && l.dodge_se == r.dodge_se
161 && l.item_se == r.item_se
170 && l.save_allowed == r.save_allowed
171 && l.menu_allowed == r.menu_allowed
172 && l.background == r.background
173 && l.save_count == r.save_count
174 && l.save_slot == r.save_slot
175 && l.atb_mode == r.atb_mode;
176 }
177
178 inline bool operator!=(const SaveSystem& l, const SaveSystem& r) {
179 return !(l == r);
180 }
181}
182
183#endif
std::string face_name
int8_t battle_start_fadein
int32_t message_position
Music before_battle_music
Music before_vehicle_music
static constexpr auto kAtbModeTags
std::vector< bool > switches
std::string graphics_name
int8_t battle_end_fadeout
int32_t message_transparent
int8_t battle_end_fadein
int32_t message_prevent_overlap
std::string background
int8_t battle_start_fadeout
std::vector< int32_t > variables
int32_t message_stretch
static constexpr auto kSceneTags
int32_t message_continue_events
Definition: rpg_actor.h:26
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98