liblcf
ldb_item.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 Item.
18 
19 template <>
20 char const* const Struct<RPG::Item>::name = "Item";
21 static TypedField<RPG::Item, std::string> static_name(
24  "name",
25  0,
26  0
27 );
28 static TypedField<RPG::Item, std::string> static_description(
31  "description",
32  0,
33  0
34 );
35 static TypedField<RPG::Item, int32_t> static_type(
38  "type",
39  1,
40  0
41 );
42 static TypedField<RPG::Item, int32_t> static_price(
45  "price",
46  0,
47  0
48 );
49 static TypedField<RPG::Item, int32_t> static_uses(
52  "uses",
53  0,
54  0
55 );
56 static TypedField<RPG::Item, int32_t> static_atk_points1(
59  "atk_points1",
60  0,
61  0
62 );
63 static TypedField<RPG::Item, int32_t> static_def_points1(
66  "def_points1",
67  0,
68  0
69 );
70 static TypedField<RPG::Item, int32_t> static_spi_points1(
73  "spi_points1",
74  0,
75  0
76 );
77 static TypedField<RPG::Item, int32_t> static_agi_points1(
80  "agi_points1",
81  0,
82  0
83 );
84 static TypedField<RPG::Item, bool> static_two_handed(
87  "two_handed",
88  1,
89  0
90 );
91 static TypedField<RPG::Item, int32_t> static_sp_cost(
94  "sp_cost",
95  0,
96  0
97 );
98 static TypedField<RPG::Item, int32_t> static_hit(
101  "hit",
102  0,
103  0
104 );
105 static TypedField<RPG::Item, int32_t> static_critical_hit(
108  "critical_hit",
109  0,
110  0
111 );
112 static TypedField<RPG::Item, int32_t> static_animation_id(
115  "animation_id",
116  0,
117  0
118 );
119 static TypedField<RPG::Item, bool> static_preemptive(
122  "preemptive",
123  0,
124  0
125 );
126 static TypedField<RPG::Item, bool> static_dual_attack(
129  "dual_attack",
130  0,
131  0
132 );
133 static TypedField<RPG::Item, bool> static_attack_all(
136  "attack_all",
137  0,
138  0
139 );
140 static TypedField<RPG::Item, bool> static_ignore_evasion(
143  "ignore_evasion",
144  0,
145  0
146 );
147 static TypedField<RPG::Item, bool> static_prevent_critical(
150  "prevent_critical",
151  0,
152  0
153 );
154 static TypedField<RPG::Item, bool> static_raise_evasion(
157  "raise_evasion",
158  0,
159  0
160 );
161 static TypedField<RPG::Item, bool> static_half_sp_cost(
164  "half_sp_cost",
165  0,
166  0
167 );
168 static TypedField<RPG::Item, bool> static_no_terrain_damage(
171  "no_terrain_damage",
172  0,
173  0
174 );
175 static TypedField<RPG::Item, bool> static_cursed(
178  "cursed",
179  0,
180  1
181 );
182 static TypedField<RPG::Item, bool> static_entire_party(
185  "entire_party",
186  1,
187  0
188 );
189 static TypedField<RPG::Item, int32_t> static_recover_hp_rate(
192  "recover_hp_rate",
193  0,
194  0
195 );
196 static TypedField<RPG::Item, int32_t> static_recover_hp(
199  "recover_hp",
200  0,
201  0
202 );
203 static TypedField<RPG::Item, int32_t> static_recover_sp_rate(
206  "recover_sp_rate",
207  0,
208  0
209 );
210 static TypedField<RPG::Item, int32_t> static_recover_sp(
213  "recover_sp",
214  0,
215  0
216 );
217 static TypedField<RPG::Item, bool> static_occasion_field1(
220  "occasion_field1",
221  0,
222  0
223 );
224 static TypedField<RPG::Item, bool> static_ko_only(
227  "ko_only",
228  0,
229  0
230 );
231 static TypedField<RPG::Item, int32_t> static_max_hp_points(
234  "max_hp_points",
235  0,
236  0
237 );
238 static TypedField<RPG::Item, int32_t> static_max_sp_points(
241  "max_sp_points",
242  0,
243  0
244 );
245 static TypedField<RPG::Item, int32_t> static_atk_points2(
248  "atk_points2",
249  0,
250  0
251 );
252 static TypedField<RPG::Item, int32_t> static_def_points2(
255  "def_points2",
256  0,
257  0
258 );
259 static TypedField<RPG::Item, int32_t> static_spi_points2(
262  "spi_points2",
263  0,
264  0
265 );
266 static TypedField<RPG::Item, int32_t> static_agi_points2(
269  "agi_points2",
270  0,
271  0
272 );
273 static TypedField<RPG::Item, int32_t> static_using_message(
276  "using_message",
277  1,
278  0
279 );
280 static TypedField<RPG::Item, int32_t> static_skill_id(
283  "skill_id",
284  0,
285  0
286 );
287 static TypedField<RPG::Item, int32_t> static_switch_id(
290  "switch_id",
291  0,
292  0
293 );
294 static TypedField<RPG::Item, bool> static_occasion_field2(
297  "occasion_field2",
298  0,
299  0
300 );
301 static TypedField<RPG::Item, bool> static_occasion_battle(
304  "occasion_battle",
305  0,
306  0
307 );
308 static SizeField<RPG::Item, bool> static_size_actor_set(
311  0,
312  0
313 );
314 static TypedField<RPG::Item, std::vector<bool>> static_actor_set(
317  "actor_set",
318  1,
319  0
320 );
321 static SizeField<RPG::Item, bool> static_size_state_set(
324  0,
325  0
326 );
327 static TypedField<RPG::Item, std::vector<bool>> static_state_set(
330  "state_set",
331  1,
332  0
333 );
334 static SizeField<RPG::Item, bool> static_size_attribute_set(
337  0,
338  0
339 );
340 static TypedField<RPG::Item, std::vector<bool>> static_attribute_set(
343  "attribute_set",
344  1,
345  0
346 );
347 static TypedField<RPG::Item, int32_t> static_state_chance(
350  "state_chance",
351  0,
352  0
353 );
354 static TypedField<RPG::Item, bool> static_reverse_state_effect(
357  "reverse_state_effect",
358  0,
359  0
360 );
361 static TypedField<RPG::Item, int32_t> static_weapon_animation(
364  "weapon_animation",
365  0,
366  1
367 );
368 static TypedField<RPG::Item, std::vector<RPG::ItemAnimation>> static_animation_data(
371  "animation_data",
372  1,
373  1
374 );
375 static TypedField<RPG::Item, bool> static_use_skill(
378  "use_skill",
379  0,
380  1
381 );
382 static SizeField<RPG::Item, bool> static_size_class_set(
385  0,
386  1
387 );
388 static TypedField<RPG::Item, std::vector<bool>> static_class_set(
391  "class_set",
392  1,
393  1
394 );
395 static TypedField<RPG::Item, int32_t> static_ranged_trajectory(
398  "ranged_trajectory",
399  0,
400  0
401 );
402 static TypedField<RPG::Item, int32_t> static_ranged_target(
405  "ranged_target",
406  0,
407  0
408 );
409 
410 
411 template <>
413  &static_name,
414  &static_description,
415  &static_type,
416  &static_price,
417  &static_uses,
418  &static_atk_points1,
419  &static_def_points1,
420  &static_spi_points1,
421  &static_agi_points1,
422  &static_two_handed,
423  &static_sp_cost,
424  &static_hit,
425  &static_critical_hit,
426  &static_animation_id,
427  &static_preemptive,
428  &static_dual_attack,
429  &static_attack_all,
430  &static_ignore_evasion,
431  &static_prevent_critical,
432  &static_raise_evasion,
433  &static_half_sp_cost,
434  &static_no_terrain_damage,
435  &static_cursed,
436  &static_entire_party,
437  &static_recover_hp_rate,
438  &static_recover_hp,
439  &static_recover_sp_rate,
440  &static_recover_sp,
441  &static_occasion_field1,
442  &static_ko_only,
443  &static_max_hp_points,
444  &static_max_sp_points,
445  &static_atk_points2,
446  &static_def_points2,
447  &static_spi_points2,
448  &static_agi_points2,
449  &static_using_message,
450  &static_skill_id,
451  &static_switch_id,
452  &static_occasion_field2,
453  &static_occasion_battle,
454  &static_size_actor_set,
455  &static_actor_set,
456  &static_size_state_set,
457  &static_state_set,
458  &static_size_attribute_set,
459  &static_attribute_set,
460  &static_state_chance,
461  &static_reverse_state_effect,
462  &static_weapon_animation,
463  &static_animation_data,
464  &static_use_skill,
465  &static_size_class_set,
466  &static_class_set,
467  &static_ranged_trajectory,
468  &static_ranged_target,
469  NULL
470 };
471 
472 template class Struct<RPG::Item>;
LDB_Reader::ChunkItem::name
@ name
Definition: ldb_chunks.h:444
LDB_Reader::ChunkItem::class_set
@ class_set
Definition: ldb_chunks.h:550
RPG::Item::weapon_animation
int32_t weapon_animation
Definition: rpg_item.h:122
ldb_chunks.h
RPG::Item::ignore_evasion
bool ignore_evasion
Definition: rpg_item.h:93
LDB_Reader::ChunkItem::hit
@ hit
Definition: ldb_chunks.h:466
RPG::Item::def_points2
int32_t def_points2
Definition: rpg_item.h:109
LDB_Reader::ChunkItem::ko_only
@ ko_only
Definition: ldb_chunks.h:502
RPG::Item::uses
int32_t uses
Definition: rpg_item.h:80
SizeField
Definition: reader_struct.h:436
RPG::Item::description
std::string description
Definition: rpg_item.h:77
RPG::Item::spi_points2
int32_t spi_points2
Definition: rpg_item.h:110
LDB_Reader::ChunkItem::state_set_size
@ state_set_size
Definition: ldb_chunks.h:530
LDB_Reader::ChunkItem::sp_cost
@ sp_cost
Definition: ldb_chunks.h:464
LDB_Reader::ChunkItem::spi_points2
@ spi_points2
Definition: ldb_chunks.h:512
LDB_Reader::ChunkItem::ignore_evasion
@ ignore_evasion
Definition: ldb_chunks.h:478
RPG::Item::dual_attack
bool dual_attack
Definition: rpg_item.h:91
Field
Definition: reader_struct.h:315
TypedField
Definition: reader_struct.h:348
LDB_Reader::ChunkItem::attack_all
@ attack_all
Definition: ldb_chunks.h:476
LDB_Reader::ChunkItem::def_points2
@ def_points2
Definition: ldb_chunks.h:510
RPG::Item::actor_set
std::vector< bool > actor_set
Definition: rpg_item.h:117
RPG::Item::reverse_state_effect
bool reverse_state_effect
Definition: rpg_item.h:121
LDB_Reader::ChunkItem::dual_attack
@ dual_attack
Definition: ldb_chunks.h:474
RPG::Item::raise_evasion
bool raise_evasion
Definition: rpg_item.h:95
LDB_Reader::ChunkItem::half_sp_cost
@ half_sp_cost
Definition: ldb_chunks.h:484
RPG::Item::recover_sp
int32_t recover_sp
Definition: rpg_item.h:103
LDB_Reader::ChunkItem::price
@ price
Definition: ldb_chunks.h:450
RPG::Item::half_sp_cost
bool half_sp_cost
Definition: rpg_item.h:96
LDB_Reader::ChunkItem::occasion_field2
@ occasion_field2
Definition: ldb_chunks.h:522
LDB_Reader::ChunkItem::ranged_trajectory
@ ranged_trajectory
Definition: ldb_chunks.h:552
RPG::Item::def_points1
int32_t def_points1
Definition: rpg_item.h:82
LDB_Reader::ChunkItem::recover_sp
@ recover_sp
Definition: ldb_chunks.h:498
RPG::Item::max_hp_points
int32_t max_hp_points
Definition: rpg_item.h:106
LDB_Reader::ChunkItem::uses
@ uses
Definition: ldb_chunks.h:452
LDB_Reader::ChunkItem::description
@ description
Definition: ldb_chunks.h:446
RPG::Item::type
int32_t type
Definition: rpg_item.h:78
LDB_Reader::ChunkItem::actor_set
@ actor_set
Definition: ldb_chunks.h:528
Struct
Definition: reader_struct.h:43
RPG::Item::atk_points1
int32_t atk_points1
Definition: rpg_item.h:81
LDB_Reader::ChunkItem::preemptive
@ preemptive
Definition: ldb_chunks.h:472
RPG::Item::recover_sp_rate
int32_t recover_sp_rate
Definition: rpg_item.h:102
LDB_Reader::ChunkItem::recover_hp_rate
@ recover_hp_rate
Definition: ldb_chunks.h:492
RPG::Item::hit
int32_t hit
Definition: rpg_item.h:87
LDB_Reader::ChunkItem::ranged_target
@ ranged_target
Definition: ldb_chunks.h:554
RPG::Item::class_set
std::vector< bool > class_set
Definition: rpg_item.h:125
LDB_Reader::ChunkItem::cursed
@ cursed
Definition: ldb_chunks.h:488
LDB_Reader::ChunkItem::prevent_critical
@ prevent_critical
Definition: ldb_chunks.h:480
LDB_Reader::ChunkItem::class_set_size
@ class_set_size
Definition: ldb_chunks.h:548
RPG::Item::ko_only
bool ko_only
Definition: rpg_item.h:105
LDB_Reader::ChunkItem::atk_points2
@ atk_points2
Definition: ldb_chunks.h:508
RPG::Item::animation_id
int32_t animation_id
Definition: rpg_item.h:89
RPG::Item::preemptive
bool preemptive
Definition: rpg_item.h:90
RPG::Item::entire_party
bool entire_party
Definition: rpg_item.h:99
LDB_Reader::ChunkItem::attribute_set_size
@ attribute_set_size
Definition: ldb_chunks.h:534
RPG::Item::use_skill
bool use_skill
Definition: rpg_item.h:124
RPG::Item::no_terrain_damage
bool no_terrain_damage
Definition: rpg_item.h:97
LDB_Reader::ChunkItem::entire_party
@ entire_party
Definition: ldb_chunks.h:490
LDB_Reader::ChunkItem::type
@ type
Definition: ldb_chunks.h:448
RPG::Item::attack_all
bool attack_all
Definition: rpg_item.h:92
RPG::Item::recover_hp_rate
int32_t recover_hp_rate
Definition: rpg_item.h:100
LDB_Reader::ChunkItem::two_handed
@ two_handed
Definition: ldb_chunks.h:462
LDB_Reader::ChunkItem::use_skill
@ use_skill
Definition: ldb_chunks.h:546
RPG::Item::agi_points2
int32_t agi_points2
Definition: rpg_item.h:111
LDB_Reader::ChunkItem::max_sp_points
@ max_sp_points
Definition: ldb_chunks.h:506
LDB_Reader::ChunkItem::spi_points1
@ spi_points1
Definition: ldb_chunks.h:458
RPG::Item::state_chance
int32_t state_chance
Definition: rpg_item.h:120
RPG::Item::using_message
int32_t using_message
Definition: rpg_item.h:112
RPG::Item::critical_hit
int32_t critical_hit
Definition: rpg_item.h:88
RPG::Item::cursed
bool cursed
Definition: rpg_item.h:98
LDB_Reader::ChunkItem::no_terrain_damage
@ no_terrain_damage
Definition: ldb_chunks.h:486
LDB_Reader::ChunkItem::actor_set_size
@ actor_set_size
Definition: ldb_chunks.h:526
LDB_Reader::ChunkItem::occasion_battle
@ occasion_battle
Definition: ldb_chunks.h:524
LDB_Reader::ChunkItem::max_hp_points
@ max_hp_points
Definition: ldb_chunks.h:504
RPG::Item::name
std::string name
Definition: rpg_item.h:76
RPG::Item::spi_points1
int32_t spi_points1
Definition: rpg_item.h:83
LDB_Reader::ChunkItem::agi_points1
@ agi_points1
Definition: ldb_chunks.h:460
RPG::Item::skill_id
int32_t skill_id
Definition: rpg_item.h:113
RPG::Item::atk_points2
int32_t atk_points2
Definition: rpg_item.h:108
RPG::Item::occasion_battle
bool occasion_battle
Definition: rpg_item.h:116
RPG::Item::animation_data
std::vector< ItemAnimation > animation_data
Definition: rpg_item.h:123
LDB_Reader::ChunkItem::raise_evasion
@ raise_evasion
Definition: ldb_chunks.h:482
RPG::Item::occasion_field1
bool occasion_field1
Definition: rpg_item.h:104
LDB_Reader::ChunkItem::state_chance
@ state_chance
Definition: ldb_chunks.h:538
RPG::Item::agi_points1
int32_t agi_points1
Definition: rpg_item.h:84
LDB_Reader::ChunkItem::critical_hit
@ critical_hit
Definition: ldb_chunks.h:468
RPG::Item::prevent_critical
bool prevent_critical
Definition: rpg_item.h:94
RPG::Item::occasion_field2
bool occasion_field2
Definition: rpg_item.h:115
LDB_Reader::ChunkItem::recover_hp
@ recover_hp
Definition: ldb_chunks.h:494
LDB_Reader::ChunkItem::occasion_field1
@ occasion_field1
Definition: ldb_chunks.h:500
RPG::Item::max_sp_points
int32_t max_sp_points
Definition: rpg_item.h:107
RPG::Item::state_set
std::vector< bool > state_set
Definition: rpg_item.h:118
LDB_Reader::ChunkItem::switch_id
@ switch_id
Definition: ldb_chunks.h:520
RPG::Item::ranged_trajectory
int32_t ranged_trajectory
Definition: rpg_item.h:126
RPG::Item::recover_hp
int32_t recover_hp
Definition: rpg_item.h:101
RPG::Item::price
int32_t price
Definition: rpg_item.h:79
LDB_Reader::ChunkItem::attribute_set
@ attribute_set
Definition: ldb_chunks.h:536
LDB_Reader::ChunkItem::using_message
@ using_message
Definition: ldb_chunks.h:516
reader_struct_impl.h
LDB_Reader::ChunkItem::animation_id
@ animation_id
Definition: ldb_chunks.h:470
LDB_Reader::ChunkItem::def_points1
@ def_points1
Definition: ldb_chunks.h:456
RPG::Item::attribute_set
std::vector< bool > attribute_set
Definition: rpg_item.h:119
LDB_Reader::ChunkItem::weapon_animation
@ weapon_animation
Definition: ldb_chunks.h:542
LDB_Reader::ChunkItem::skill_id
@ skill_id
Definition: ldb_chunks.h:518
LDB_Reader::ChunkItem::reverse_state_effect
@ reverse_state_effect
Definition: ldb_chunks.h:540
LDB_Reader::ChunkItem::atk_points1
@ atk_points1
Definition: ldb_chunks.h:454
LDB_Reader::ChunkItem::recover_sp_rate
@ recover_sp_rate
Definition: ldb_chunks.h:496
LDB_Reader::ChunkItem::state_set
@ state_set
Definition: ldb_chunks.h:532
RPG::Item::two_handed
bool two_handed
Definition: rpg_item.h:85
RPG::Item::switch_id
int32_t switch_id
Definition: rpg_item.h:114
RPG::Item::sp_cost
int32_t sp_cost
Definition: rpg_item.h:86
RPG::Item::ranged_target
int32_t ranged_target
Definition: rpg_item.h:127
LDB_Reader::ChunkItem::agi_points2
@ agi_points2
Definition: ldb_chunks.h:514
LDB_Reader::ChunkItem::animation_data
@ animation_data
Definition: ldb_chunks.h:544
ldb_reader.h