liblcf
Loading...
Searching...
No Matches
ldb_terrain.cpp
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// Headers
13#include "ldb_reader.h"
14#include "ldb_chunks.h"
15#include "reader_struct_impl.h"
16
17// Read Terrain.
18
19template <>
20char const* const Struct<RPG::Terrain>::name = "Terrain";
24 "name",
25 0,
26 0
27);
28static TypedField<RPG::Terrain, int32_t> static_damage(
31 "damage",
32 0,
33 0
34);
35static TypedField<RPG::Terrain, int32_t> static_encounter_rate(
38 "encounter_rate",
39 0,
40 0
41);
42static TypedField<RPG::Terrain, std::string> static_background_name(
45 "background_name",
46 0,
47 0
48);
49static TypedField<RPG::Terrain, bool> static_boat_pass(
52 "boat_pass",
53 0,
54 0
55);
56static TypedField<RPG::Terrain, bool> static_ship_pass(
59 "ship_pass",
60 0,
61 0
62);
63static TypedField<RPG::Terrain, bool> static_airship_pass(
66 "airship_pass",
67 0,
68 0
69);
70static TypedField<RPG::Terrain, bool> static_airship_land(
73 "airship_land",
74 0,
75 0
76);
77static TypedField<RPG::Terrain, int32_t> static_bush_depth(
80 "bush_depth",
81 1,
82 0
83);
84static TypedField<RPG::Terrain, RPG::Sound> static_footstep(
87 "footstep",
88 1,
89 1
90);
91static TypedField<RPG::Terrain, bool> static_on_damage_se(
94 "on_damage_se",
95 0,
96 1
97);
98static TypedField<RPG::Terrain, int32_t> static_background_type(
101 "background_type",
102 0,
103 1
104);
105static TypedField<RPG::Terrain, std::string> static_background_a_name(
108 "background_a_name",
109 0,
110 1
111);
112static TypedField<RPG::Terrain, bool> static_background_a_scrollh(
115 "background_a_scrollh",
116 0,
117 1
118);
119static TypedField<RPG::Terrain, bool> static_background_a_scrollv(
122 "background_a_scrollv",
123 0,
124 1
125);
126static TypedField<RPG::Terrain, int32_t> static_background_a_scrollh_speed(
129 "background_a_scrollh_speed",
130 0,
131 1
132);
133static TypedField<RPG::Terrain, int32_t> static_background_a_scrollv_speed(
136 "background_a_scrollv_speed",
137 0,
138 1
139);
140static TypedField<RPG::Terrain, bool> static_background_b(
143 "background_b",
144 0,
145 1
146);
147static TypedField<RPG::Terrain, std::string> static_background_b_name(
150 "background_b_name",
151 0,
152 1
153);
154static TypedField<RPG::Terrain, bool> static_background_b_scrollh(
157 "background_b_scrollh",
158 0,
159 1
160);
161static TypedField<RPG::Terrain, bool> static_background_b_scrollv(
164 "background_b_scrollv",
165 0,
166 1
167);
168static TypedField<RPG::Terrain, int32_t> static_background_b_scrollh_speed(
171 "background_b_scrollh_speed",
172 0,
173 1
174);
175static TypedField<RPG::Terrain, int32_t> static_background_b_scrollv_speed(
178 "background_b_scrollv_speed",
179 0,
180 1
181);
185 "special_flags",
186 0,
187 1
188);
189static TypedField<RPG::Terrain, int32_t> static_special_back_party(
192 "special_back_party",
193 0,
194 1
195);
196static TypedField<RPG::Terrain, int32_t> static_special_back_enemies(
199 "special_back_enemies",
200 0,
201 1
202);
203static TypedField<RPG::Terrain, int32_t> static_special_lateral_party(
206 "special_lateral_party",
207 0,
208 1
209);
210static TypedField<RPG::Terrain, int32_t> static_special_lateral_enemies(
213 "special_lateral_enemies",
214 0,
215 1
216);
217static TypedField<RPG::Terrain, int32_t> static_grid_location(
220 "grid_location",
221 0,
222 1
223);
224static TypedField<RPG::Terrain, int32_t> static_grid_top_y(
227 "grid_top_y",
228 0,
229 1
230);
231static TypedField<RPG::Terrain, int32_t> static_grid_elongation(
234 "grid_elongation",
235 0,
236 1
237);
238static TypedField<RPG::Terrain, int32_t> static_grid_inclination(
241 "grid_inclination",
242 0,
243 1
244);
245
246
247template <>
249 &static_name,
250 &static_damage,
251 &static_encounter_rate,
252 &static_background_name,
253 &static_boat_pass,
254 &static_ship_pass,
255 &static_airship_pass,
256 &static_airship_land,
257 &static_bush_depth,
258 &static_footstep,
259 &static_on_damage_se,
260 &static_background_type,
261 &static_background_a_name,
262 &static_background_a_scrollh,
263 &static_background_a_scrollv,
264 &static_background_a_scrollh_speed,
265 &static_background_a_scrollv_speed,
266 &static_background_b,
267 &static_background_b_name,
268 &static_background_b_scrollh,
269 &static_background_b_scrollv,
270 &static_background_b_scrollh_speed,
271 &static_background_b_scrollv_speed,
272 &static_special_flags,
273 &static_special_back_party,
274 &static_special_back_enemies,
275 &static_special_lateral_party,
276 &static_special_lateral_enemies,
277 &static_grid_location,
278 &static_grid_top_y,
279 &static_grid_elongation,
280 &static_grid_inclination,
281 NULL
282};
283
284template class Struct<RPG::Terrain>;
bool background_b
Definition: rpg_terrain.h:67
bool airship_pass
Definition: rpg_terrain.h:56
bool boat_pass
Definition: rpg_terrain.h:54
std::string name
Definition: rpg_terrain.h:50
bool background_b_scrollv
Definition: rpg_terrain.h:70
int32_t grid_inclination
Definition: rpg_terrain.h:94
int32_t special_back_enemies
Definition: rpg_terrain.h:88
bool on_damage_se
Definition: rpg_terrain.h:60
bool background_b_scrollh
Definition: rpg_terrain.h:69
int32_t damage
Definition: rpg_terrain.h:51
int32_t background_type
Definition: rpg_terrain.h:61
int32_t background_b_scrollv_speed
Definition: rpg_terrain.h:72
struct RPG::Terrain::Flags special_flags
bool ship_pass
Definition: rpg_terrain.h:55
bool airship_land
Definition: rpg_terrain.h:57
int32_t grid_top_y
Definition: rpg_terrain.h:92
std::string background_name
Definition: rpg_terrain.h:53
bool background_a_scrollh
Definition: rpg_terrain.h:63
int32_t grid_elongation
Definition: rpg_terrain.h:93
int32_t background_a_scrollh_speed
Definition: rpg_terrain.h:65
int32_t special_lateral_enemies
Definition: rpg_terrain.h:90
int32_t bush_depth
Definition: rpg_terrain.h:58
int32_t background_a_scrollv_speed
Definition: rpg_terrain.h:66
bool background_a_scrollv
Definition: rpg_terrain.h:64
std::string background_b_name
Definition: rpg_terrain.h:68
int32_t grid_location
Definition: rpg_terrain.h:91
int32_t special_lateral_party
Definition: rpg_terrain.h:89
int32_t encounter_rate
Definition: rpg_terrain.h:52
std::string background_a_name
Definition: rpg_terrain.h:62
int32_t background_b_scrollh_speed
Definition: rpg_terrain.h:71
int32_t special_back_party
Definition: rpg_terrain.h:87
Sound footstep
Definition: rpg_terrain.h:59