1 /* !!!! GENERATED FILE - DO NOT EDIT !!!!
2  * --------------------------------------
3  *
4  * This file is part of liblcf. Copyright (c) 2021 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 "lcf/ldb/reader.h"
14 #include "lcf/ldb/chunks.h"
15 #include "reader_struct_impl.h"
16 
17 namespace lcf {
18 
19 // Read System.
20 
21 template <>
22 char const* const Struct<rpg::System>::name = "System";
23 static TypedField<rpg::System, int32_t> static_ldb_id(
24 	&rpg::System::ldb_id,
25 	LDB_Reader::ChunkSystem::ldb_id,
26 	"ldb_id",
27 	0,
28 	0
29 );
30 static TypedField<rpg::System, DBString> static_boat_name(
31 	&rpg::System::boat_name,
32 	LDB_Reader::ChunkSystem::boat_name,
33 	"boat_name",
34 	0,
35 	0
36 );
37 static TypedField<rpg::System, DBString> static_ship_name(
38 	&rpg::System::ship_name,
39 	LDB_Reader::ChunkSystem::ship_name,
40 	"ship_name",
41 	0,
42 	0
43 );
44 static TypedField<rpg::System, DBString> static_airship_name(
45 	&rpg::System::airship_name,
46 	LDB_Reader::ChunkSystem::airship_name,
47 	"airship_name",
48 	0,
49 	0
50 );
51 static TypedField<rpg::System, int32_t> static_boat_index(
52 	&rpg::System::boat_index,
53 	LDB_Reader::ChunkSystem::boat_index,
54 	"boat_index",
55 	0,
56 	0
57 );
58 static TypedField<rpg::System, int32_t> static_ship_index(
59 	&rpg::System::ship_index,
60 	LDB_Reader::ChunkSystem::ship_index,
61 	"ship_index",
62 	0,
63 	0
64 );
65 static TypedField<rpg::System, int32_t> static_airship_index(
66 	&rpg::System::airship_index,
67 	LDB_Reader::ChunkSystem::airship_index,
68 	"airship_index",
69 	0,
70 	0
71 );
72 static TypedField<rpg::System, DBString> static_title_name(
73 	&rpg::System::title_name,
74 	LDB_Reader::ChunkSystem::title_name,
75 	"title_name",
76 	0,
77 	0
78 );
79 static TypedField<rpg::System, DBString> static_gameover_name(
80 	&rpg::System::gameover_name,
81 	LDB_Reader::ChunkSystem::gameover_name,
82 	"gameover_name",
83 	0,
84 	0
85 );
86 static TypedField<rpg::System, DBString> static_system_name(
87 	&rpg::System::system_name,
88 	LDB_Reader::ChunkSystem::system_name,
89 	"system_name",
90 	0,
91 	0
92 );
93 static TypedField<rpg::System, DBString> static_system2_name(
94 	&rpg::System::system2_name,
95 	LDB_Reader::ChunkSystem::system2_name,
96 	"system2_name",
97 	0,
98 	1
99 );
100 static CountField<rpg::System, std::vector<int16_t>> static_size_party(
101 	&rpg::System::party,
102 	LDB_Reader::ChunkSystem::party_size,
103 	0,
104 	0
105 );
106 static TypedField<rpg::System, std::vector<int16_t>> static_party(
107 	&rpg::System::party,
108 	LDB_Reader::ChunkSystem::party,
109 	"party",
110 	1,
111 	0
112 );
113 static CountField<rpg::System, std::vector<int16_t>> static_size_menu_commands(
114 	&rpg::System::menu_commands,
115 	LDB_Reader::ChunkSystem::menu_commands_size,
116 	0,
117 	1
118 );
119 static TypedField<rpg::System, std::vector<int16_t>> static_menu_commands(
120 	&rpg::System::menu_commands,
121 	LDB_Reader::ChunkSystem::menu_commands,
122 	"menu_commands",
123 	1,
124 	1
125 );
126 static TypedField<rpg::System, rpg::Music> static_title_music(
127 	&rpg::System::title_music,
128 	LDB_Reader::ChunkSystem::title_music,
129 	"title_music",
130 	1,
131 	0
132 );
133 static TypedField<rpg::System, rpg::Music> static_battle_music(
134 	&rpg::System::battle_music,
135 	LDB_Reader::ChunkSystem::battle_music,
136 	"battle_music",
137 	1,
138 	0
139 );
140 static TypedField<rpg::System, rpg::Music> static_battle_end_music(
141 	&rpg::System::battle_end_music,
142 	LDB_Reader::ChunkSystem::battle_end_music,
143 	"battle_end_music",
144 	1,
145 	0
146 );
147 static TypedField<rpg::System, rpg::Music> static_inn_music(
148 	&rpg::System::inn_music,
149 	LDB_Reader::ChunkSystem::inn_music,
150 	"inn_music",
151 	1,
152 	0
153 );
154 static TypedField<rpg::System, rpg::Music> static_boat_music(
155 	&rpg::System::boat_music,
156 	LDB_Reader::ChunkSystem::boat_music,
157 	"boat_music",
158 	1,
159 	0
160 );
161 static TypedField<rpg::System, rpg::Music> static_ship_music(
162 	&rpg::System::ship_music,
163 	LDB_Reader::ChunkSystem::ship_music,
164 	"ship_music",
165 	1,
166 	0
167 );
168 static TypedField<rpg::System, rpg::Music> static_airship_music(
169 	&rpg::System::airship_music,
170 	LDB_Reader::ChunkSystem::airship_music,
171 	"airship_music",
172 	1,
173 	0
174 );
175 static TypedField<rpg::System, rpg::Music> static_gameover_music(
176 	&rpg::System::gameover_music,
177 	LDB_Reader::ChunkSystem::gameover_music,
178 	"gameover_music",
179 	1,
180 	0
181 );
182 static TypedField<rpg::System, rpg::Sound> static_cursor_se(
183 	&rpg::System::cursor_se,
184 	LDB_Reader::ChunkSystem::cursor_se,
185 	"cursor_se",
186 	1,
187 	0
188 );
189 static TypedField<rpg::System, rpg::Sound> static_decision_se(
190 	&rpg::System::decision_se,
191 	LDB_Reader::ChunkSystem::decision_se,
192 	"decision_se",
193 	1,
194 	0
195 );
196 static TypedField<rpg::System, rpg::Sound> static_cancel_se(
197 	&rpg::System::cancel_se,
198 	LDB_Reader::ChunkSystem::cancel_se,
199 	"cancel_se",
200 	1,
201 	0
202 );
203 static TypedField<rpg::System, rpg::Sound> static_buzzer_se(
204 	&rpg::System::buzzer_se,
205 	LDB_Reader::ChunkSystem::buzzer_se,
206 	"buzzer_se",
207 	1,
208 	0
209 );
210 static TypedField<rpg::System, rpg::Sound> static_battle_se(
211 	&rpg::System::battle_se,
212 	LDB_Reader::ChunkSystem::battle_se,
213 	"battle_se",
214 	1,
215 	0
216 );
217 static TypedField<rpg::System, rpg::Sound> static_escape_se(
218 	&rpg::System::escape_se,
219 	LDB_Reader::ChunkSystem::escape_se,
220 	"escape_se",
221 	1,
222 	0
223 );
224 static TypedField<rpg::System, rpg::Sound> static_enemy_attack_se(
225 	&rpg::System::enemy_attack_se,
226 	LDB_Reader::ChunkSystem::enemy_attack_se,
227 	"enemy_attack_se",
228 	1,
229 	0
230 );
231 static TypedField<rpg::System, rpg::Sound> static_enemy_damaged_se(
232 	&rpg::System::enemy_damaged_se,
233 	LDB_Reader::ChunkSystem::enemy_damaged_se,
234 	"enemy_damaged_se",
235 	1,
236 	0
237 );
238 static TypedField<rpg::System, rpg::Sound> static_actor_damaged_se(
239 	&rpg::System::actor_damaged_se,
240 	LDB_Reader::ChunkSystem::actor_damaged_se,
241 	"actor_damaged_se",
242 	1,
243 	0
244 );
245 static TypedField<rpg::System, rpg::Sound> static_dodge_se(
246 	&rpg::System::dodge_se,
247 	LDB_Reader::ChunkSystem::dodge_se,
248 	"dodge_se",
249 	1,
250 	0
251 );
252 static TypedField<rpg::System, rpg::Sound> static_enemy_death_se(
253 	&rpg::System::enemy_death_se,
254 	LDB_Reader::ChunkSystem::enemy_death_se,
255 	"enemy_death_se",
256 	1,
257 	0
258 );
259 static TypedField<rpg::System, rpg::Sound> static_item_se(
260 	&rpg::System::item_se,
261 	LDB_Reader::ChunkSystem::item_se,
262 	"item_se",
263 	1,
264 	0
265 );
266 static TypedField<rpg::System, int32_t> static_transition_out(
267 	&rpg::System::transition_out,
268 	LDB_Reader::ChunkSystem::transition_out,
269 	"transition_out",
270 	1,
271 	0
272 );
273 static TypedField<rpg::System, int32_t> static_transition_in(
274 	&rpg::System::transition_in,
275 	LDB_Reader::ChunkSystem::transition_in,
276 	"transition_in",
277 	1,
278 	0
279 );
280 static TypedField<rpg::System, int32_t> static_battle_start_fadeout(
281 	&rpg::System::battle_start_fadeout,
282 	LDB_Reader::ChunkSystem::battle_start_fadeout,
283 	"battle_start_fadeout",
284 	1,
285 	0
286 );
287 static TypedField<rpg::System, int32_t> static_battle_start_fadein(
288 	&rpg::System::battle_start_fadein,
289 	LDB_Reader::ChunkSystem::battle_start_fadein,
290 	"battle_start_fadein",
291 	1,
292 	0
293 );
294 static TypedField<rpg::System, int32_t> static_battle_end_fadeout(
295 	&rpg::System::battle_end_fadeout,
296 	LDB_Reader::ChunkSystem::battle_end_fadeout,
297 	"battle_end_fadeout",
298 	1,
299 	0
300 );
301 static TypedField<rpg::System, int32_t> static_battle_end_fadein(
302 	&rpg::System::battle_end_fadein,
303 	LDB_Reader::ChunkSystem::battle_end_fadein,
304 	"battle_end_fadein",
305 	1,
306 	0
307 );
308 static TypedField<rpg::System, int32_t> static_message_stretch(
309 	&rpg::System::message_stretch,
310 	LDB_Reader::ChunkSystem::message_stretch,
311 	"message_stretch",
312 	0,
313 	0
314 );
315 static TypedField<rpg::System, int32_t> static_font_id(
316 	&rpg::System::font_id,
317 	LDB_Reader::ChunkSystem::font_id,
318 	"font_id",
319 	0,
320 	0
321 );
322 static TypedField<rpg::System, int32_t> static_selected_condition(
323 	&rpg::System::selected_condition,
324 	LDB_Reader::ChunkSystem::selected_condition,
325 	"selected_condition",
326 	0,
327 	0
328 );
329 static TypedField<rpg::System, int32_t> static_selected_hero(
330 	&rpg::System::selected_hero,
331 	LDB_Reader::ChunkSystem::selected_hero,
332 	"selected_hero",
333 	1,
334 	0
335 );
336 static TypedField<rpg::System, DBString> static_battletest_background(
337 	&rpg::System::battletest_background,
338 	LDB_Reader::ChunkSystem::battletest_background,
339 	"battletest_background",
340 	0,
341 	0
342 );
343 static TypedField<rpg::System, std::vector<rpg::TestBattler>> static_battletest_data(
344 	&rpg::System::battletest_data,
345 	LDB_Reader::ChunkSystem::battletest_data,
346 	"battletest_data",
347 	1,
348 	0
349 );
350 static TypedField<rpg::System, int32_t> static_save_count(
351 	&rpg::System::save_count,
352 	LDB_Reader::ChunkSystem::save_count,
353 	"save_count",
354 	0,
355 	0
356 );
357 static TypedField<rpg::System, int32_t> static_battletest_terrain(
358 	&rpg::System::battletest_terrain,
359 	LDB_Reader::ChunkSystem::battletest_terrain,
360 	"battletest_terrain",
361 	0,
362 	0
363 );
364 static TypedField<rpg::System, int32_t> static_battletest_formation(
365 	&rpg::System::battletest_formation,
366 	LDB_Reader::ChunkSystem::battletest_formation,
367 	"battletest_formation",
368 	0,
369 	0
370 );
371 static TypedField<rpg::System, int32_t> static_battletest_condition(
372 	&rpg::System::battletest_condition,
373 	LDB_Reader::ChunkSystem::battletest_condition,
374 	"battletest_condition",
375 	0,
376 	0
377 );
378 static TypedField<rpg::System, int32_t> static_equipment_setting(
379 	&rpg::System::equipment_setting,
380 	LDB_Reader::ChunkSystem::equipment_setting,
381 	"equipment_setting",
382 	0,
383 	1
384 );
385 static TypedField<rpg::System, int32_t> static_battletest_alt_terrain(
386 	&rpg::System::battletest_alt_terrain,
387 	LDB_Reader::ChunkSystem::battletest_alt_terrain,
388 	"battletest_alt_terrain",
389 	0,
390 	1
391 );
392 static TypedField<rpg::System, bool> static_show_frame(
393 	&rpg::System::show_frame,
394 	LDB_Reader::ChunkSystem::show_frame,
395 	"show_frame",
396 	0,
397 	1
398 );
399 static TypedField<rpg::System, DBString> static_frame_name(
400 	&rpg::System::frame_name,
401 	LDB_Reader::ChunkSystem::frame_name,
402 	"frame_name",
403 	0,
404 	1
405 );
406 static TypedField<rpg::System, bool> static_invert_animations(
407 	&rpg::System::invert_animations,
408 	LDB_Reader::ChunkSystem::invert_animations,
409 	"invert_animations",
410 	0,
411 	1
412 );
413 static TypedField<rpg::System, bool> static_show_title(
414 	&rpg::System::show_title,
415 	LDB_Reader::ChunkSystem::show_title,
416 	"show_title",
417 	0,
418 	1
419 );
420 static TypedField<rpg::System, int32_t> static_easyrpg_alternative_exp(
421 	&rpg::System::easyrpg_alternative_exp,
422 	LDB_Reader::ChunkSystem::easyrpg_alternative_exp,
423 	"easyrpg_alternative_exp",
424 	0,
425 	0
426 );
427 static TypedField<rpg::System, std::vector<int16_t>> static_easyrpg_battle_options(
428 	&rpg::System::easyrpg_battle_options,
429 	LDB_Reader::ChunkSystem::easyrpg_battle_options,
430 	"easyrpg_battle_options",
431 	0,
432 	0
433 );
434 static TypedField<rpg::System, int32_t> static_easyrpg_max_actor_hp(
435 	&rpg::System::easyrpg_max_actor_hp,
436 	LDB_Reader::ChunkSystem::easyrpg_max_actor_hp,
437 	"easyrpg_max_actor_hp",
438 	0,
439 	0
440 );
441 static TypedField<rpg::System, int32_t> static_easyrpg_max_enemy_hp(
442 	&rpg::System::easyrpg_max_enemy_hp,
443 	LDB_Reader::ChunkSystem::easyrpg_max_enemy_hp,
444 	"easyrpg_max_enemy_hp",
445 	0,
446 	0
447 );
448 static TypedField<rpg::System, int32_t> static_easyrpg_max_damage(
449 	&rpg::System::easyrpg_max_damage,
450 	LDB_Reader::ChunkSystem::easyrpg_max_damage,
451 	"easyrpg_max_damage",
452 	0,
453 	0
454 );
455 static TypedField<rpg::System, int32_t> static_easyrpg_max_exp(
456 	&rpg::System::easyrpg_max_exp,
457 	LDB_Reader::ChunkSystem::easyrpg_max_exp,
458 	"easyrpg_max_exp",
459 	0,
460 	0
461 );
462 static TypedField<rpg::System, int32_t> static_easyrpg_max_level(
463 	&rpg::System::easyrpg_max_level,
464 	LDB_Reader::ChunkSystem::easyrpg_max_level,
465 	"easyrpg_max_level",
466 	0,
467 	0
468 );
469 static TypedField<rpg::System, int32_t> static_easyrpg_max_savefiles(
470 	&rpg::System::easyrpg_max_savefiles,
471 	LDB_Reader::ChunkSystem::easyrpg_max_savefiles,
472 	"easyrpg_max_savefiles",
473 	0,
474 	0
475 );
476 static TypedField<rpg::System, int32_t> static_easyrpg_max_item_count(
477 	&rpg::System::easyrpg_max_item_count,
478 	LDB_Reader::ChunkSystem::easyrpg_max_item_count,
479 	"easyrpg_max_item_count",
480 	0,
481 	0
482 );
483 static TypedField<rpg::System, int32_t> static_easyrpg_variable_min_value(
484 	&rpg::System::easyrpg_variable_min_value,
485 	LDB_Reader::ChunkSystem::easyrpg_variable_min_value,
486 	"easyrpg_variable_min_value",
487 	0,
488 	0
489 );
490 static TypedField<rpg::System, int32_t> static_easyrpg_variable_max_value(
491 	&rpg::System::easyrpg_variable_max_value,
492 	LDB_Reader::ChunkSystem::easyrpg_variable_max_value,
493 	"easyrpg_variable_max_value",
494 	0,
495 	0
496 );
497 static TypedField<rpg::System, int32_t> static_easyrpg_max_actor_sp(
498 	&rpg::System::easyrpg_max_actor_sp,
499 	LDB_Reader::ChunkSystem::easyrpg_max_actor_sp,
500 	"easyrpg_max_actor_sp",
501 	0,
502 	0
503 );
504 static TypedField<rpg::System, int32_t> static_easyrpg_max_enemy_sp(
505 	&rpg::System::easyrpg_max_enemy_sp,
506 	LDB_Reader::ChunkSystem::easyrpg_max_enemy_sp,
507 	"easyrpg_max_enemy_sp",
508 	0,
509 	0
510 );
511 static TypedField<rpg::System, int32_t> static_easyrpg_max_stat_base_value(
512 	&rpg::System::easyrpg_max_stat_base_value,
513 	LDB_Reader::ChunkSystem::easyrpg_max_stat_base_value,
514 	"easyrpg_max_stat_base_value",
515 	0,
516 	0
517 );
518 static TypedField<rpg::System, int32_t> static_easyrpg_max_stat_battle_value(
519 	&rpg::System::easyrpg_max_stat_battle_value,
520 	LDB_Reader::ChunkSystem::easyrpg_max_stat_battle_value,
521 	"easyrpg_max_stat_battle_value",
522 	0,
523 	0
524 );
525 
526 
527 template <>
528 Field<rpg::System> const* Struct<rpg::System>::fields[] = {
529 	&static_ldb_id,
530 	&static_boat_name,
531 	&static_ship_name,
532 	&static_airship_name,
533 	&static_boat_index,
534 	&static_ship_index,
535 	&static_airship_index,
536 	&static_title_name,
537 	&static_gameover_name,
538 	&static_system_name,
539 	&static_system2_name,
540 	&static_size_party,
541 	&static_party,
542 	&static_size_menu_commands,
543 	&static_menu_commands,
544 	&static_title_music,
545 	&static_battle_music,
546 	&static_battle_end_music,
547 	&static_inn_music,
548 	&static_boat_music,
549 	&static_ship_music,
550 	&static_airship_music,
551 	&static_gameover_music,
552 	&static_cursor_se,
553 	&static_decision_se,
554 	&static_cancel_se,
555 	&static_buzzer_se,
556 	&static_battle_se,
557 	&static_escape_se,
558 	&static_enemy_attack_se,
559 	&static_enemy_damaged_se,
560 	&static_actor_damaged_se,
561 	&static_dodge_se,
562 	&static_enemy_death_se,
563 	&static_item_se,
564 	&static_transition_out,
565 	&static_transition_in,
566 	&static_battle_start_fadeout,
567 	&static_battle_start_fadein,
568 	&static_battle_end_fadeout,
569 	&static_battle_end_fadein,
570 	&static_message_stretch,
571 	&static_font_id,
572 	&static_selected_condition,
573 	&static_selected_hero,
574 	&static_battletest_background,
575 	&static_battletest_data,
576 	&static_save_count,
577 	&static_battletest_terrain,
578 	&static_battletest_formation,
579 	&static_battletest_condition,
580 	&static_equipment_setting,
581 	&static_battletest_alt_terrain,
582 	&static_show_frame,
583 	&static_frame_name,
584 	&static_invert_animations,
585 	&static_show_title,
586 	&static_easyrpg_alternative_exp,
587 	&static_easyrpg_battle_options,
588 	&static_easyrpg_max_actor_hp,
589 	&static_easyrpg_max_enemy_hp,
590 	&static_easyrpg_max_damage,
591 	&static_easyrpg_max_exp,
592 	&static_easyrpg_max_level,
593 	&static_easyrpg_max_savefiles,
594 	&static_easyrpg_max_item_count,
595 	&static_easyrpg_variable_min_value,
596 	&static_easyrpg_variable_max_value,
597 	&static_easyrpg_max_actor_sp,
598 	&static_easyrpg_max_enemy_sp,
599 	&static_easyrpg_max_stat_base_value,
600 	&static_easyrpg_max_stat_battle_value,
601 	NULL
602 };
603 
604 template class Struct<rpg::System>;
605 
606 } //namespace lcf
607