liblcf
Loading...
Searching...
No Matches
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
19template <>
20char const* const Struct<RPG::Item>::name = "Item";
21static TypedField<RPG::Item, std::string> static_name(
24 "name",
25 0,
26 0
27);
28static TypedField<RPG::Item, std::string> static_description(
31 "description",
32 0,
33 0
34);
35static TypedField<RPG::Item, int32_t> static_type(
38 "type",
39 1,
40 0
41);
42static TypedField<RPG::Item, int32_t> static_price(
45 "price",
46 0,
47 0
48);
49static TypedField<RPG::Item, int32_t> static_uses(
52 "uses",
53 0,
54 0
55);
56static TypedField<RPG::Item, int32_t> static_atk_points1(
59 "atk_points1",
60 0,
61 0
62);
63static TypedField<RPG::Item, int32_t> static_def_points1(
66 "def_points1",
67 0,
68 0
69);
70static TypedField<RPG::Item, int32_t> static_spi_points1(
73 "spi_points1",
74 0,
75 0
76);
77static TypedField<RPG::Item, int32_t> static_agi_points1(
80 "agi_points1",
81 0,
82 0
83);
84static TypedField<RPG::Item, bool> static_two_handed(
87 "two_handed",
88 1,
89 0
90);
91static TypedField<RPG::Item, int32_t> static_sp_cost(
94 "sp_cost",
95 0,
96 0
97);
98static TypedField<RPG::Item, int32_t> static_hit(
101 "hit",
102 0,
103 0
104);
105static TypedField<RPG::Item, int32_t> static_critical_hit(
108 "critical_hit",
109 0,
110 0
111);
112static TypedField<RPG::Item, int32_t> static_animation_id(
115 "animation_id",
116 0,
117 0
118);
119static TypedField<RPG::Item, bool> static_preemptive(
122 "preemptive",
123 0,
124 0
125);
126static TypedField<RPG::Item, bool> static_dual_attack(
129 "dual_attack",
130 0,
131 0
132);
133static TypedField<RPG::Item, bool> static_attack_all(
136 "attack_all",
137 0,
138 0
139);
140static TypedField<RPG::Item, bool> static_ignore_evasion(
143 "ignore_evasion",
144 0,
145 0
146);
147static TypedField<RPG::Item, bool> static_prevent_critical(
150 "prevent_critical",
151 0,
152 0
153);
154static TypedField<RPG::Item, bool> static_raise_evasion(
157 "raise_evasion",
158 0,
159 0
160);
161static TypedField<RPG::Item, bool> static_half_sp_cost(
164 "half_sp_cost",
165 0,
166 0
167);
168static TypedField<RPG::Item, bool> static_no_terrain_damage(
171 "no_terrain_damage",
172 0,
173 0
174);
175static TypedField<RPG::Item, bool> static_cursed(
178 "cursed",
179 0,
180 1
181);
182static TypedField<RPG::Item, bool> static_entire_party(
185 "entire_party",
186 1,
187 0
188);
189static TypedField<RPG::Item, int32_t> static_recover_hp_rate(
192 "recover_hp_rate",
193 0,
194 0
195);
196static TypedField<RPG::Item, int32_t> static_recover_hp(
199 "recover_hp",
200 0,
201 0
202);
203static TypedField<RPG::Item, int32_t> static_recover_sp_rate(
206 "recover_sp_rate",
207 0,
208 0
209);
210static TypedField<RPG::Item, int32_t> static_recover_sp(
213 "recover_sp",
214 0,
215 0
216);
217static TypedField<RPG::Item, bool> static_occasion_field1(
220 "occasion_field1",
221 0,
222 0
223);
224static TypedField<RPG::Item, bool> static_ko_only(
227 "ko_only",
228 0,
229 0
230);
231static TypedField<RPG::Item, int32_t> static_max_hp_points(
234 "max_hp_points",
235 0,
236 0
237);
238static TypedField<RPG::Item, int32_t> static_max_sp_points(
241 "max_sp_points",
242 0,
243 0
244);
245static TypedField<RPG::Item, int32_t> static_atk_points2(
248 "atk_points2",
249 0,
250 0
251);
252static TypedField<RPG::Item, int32_t> static_def_points2(
255 "def_points2",
256 0,
257 0
258);
259static TypedField<RPG::Item, int32_t> static_spi_points2(
262 "spi_points2",
263 0,
264 0
265);
266static TypedField<RPG::Item, int32_t> static_agi_points2(
269 "agi_points2",
270 0,
271 0
272);
273static TypedField<RPG::Item, int32_t> static_using_message(
276 "using_message",
277 1,
278 0
279);
280static TypedField<RPG::Item, int32_t> static_skill_id(
283 "skill_id",
284 0,
285 0
286);
287static TypedField<RPG::Item, int32_t> static_switch_id(
290 "switch_id",
291 0,
292 0
293);
294static TypedField<RPG::Item, bool> static_occasion_field2(
297 "occasion_field2",
298 0,
299 0
300);
301static TypedField<RPG::Item, bool> static_occasion_battle(
304 "occasion_battle",
305 0,
306 0
307);
308static SizeField<RPG::Item, bool> static_size_actor_set(
311 0,
312 0
313);
314static TypedField<RPG::Item, std::vector<bool>> static_actor_set(
317 "actor_set",
318 1,
319 0
320);
321static SizeField<RPG::Item, bool> static_size_state_set(
324 0,
325 0
326);
327static TypedField<RPG::Item, std::vector<bool>> static_state_set(
330 "state_set",
331 1,
332 0
333);
334static SizeField<RPG::Item, bool> static_size_attribute_set(
337 0,
338 0
339);
340static TypedField<RPG::Item, std::vector<bool>> static_attribute_set(
343 "attribute_set",
344 1,
345 0
346);
347static TypedField<RPG::Item, int32_t> static_state_chance(
350 "state_chance",
351 0,
352 0
353);
354static TypedField<RPG::Item, bool> static_reverse_state_effect(
357 "reverse_state_effect",
358 0,
359 0
360);
361static TypedField<RPG::Item, int32_t> static_weapon_animation(
364 "weapon_animation",
365 0,
366 1
367);
371 "animation_data",
372 1,
373 1
374);
375static TypedField<RPG::Item, bool> static_use_skill(
378 "use_skill",
379 0,
380 1
381);
382static SizeField<RPG::Item, bool> static_size_class_set(
385 0,
386 1
387);
388static TypedField<RPG::Item, std::vector<bool>> static_class_set(
391 "class_set",
392 1,
393 1
394);
395static TypedField<RPG::Item, int32_t> static_ranged_trajectory(
398 "ranged_trajectory",
399 0,
400 0
401);
402static TypedField<RPG::Item, int32_t> static_ranged_target(
405 "ranged_target",
406 0,
407 0
408);
409
410
411template <>
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
472template class Struct<RPG::Item>;
int32_t def_points1
Definition: rpg_item.h:82
bool cursed
Definition: rpg_item.h:98
int32_t spi_points2
Definition: rpg_item.h:110
std::string name
Definition: rpg_item.h:76
int32_t max_sp_points
Definition: rpg_item.h:107
bool entire_party
Definition: rpg_item.h:99
bool ignore_evasion
Definition: rpg_item.h:93
int32_t atk_points2
Definition: rpg_item.h:108
std::vector< bool > class_set
Definition: rpg_item.h:125
int32_t atk_points1
Definition: rpg_item.h:81
int32_t recover_hp_rate
Definition: rpg_item.h:100
int32_t type
Definition: rpg_item.h:78
int32_t price
Definition: rpg_item.h:79
int32_t state_chance
Definition: rpg_item.h:120
int32_t critical_hit
Definition: rpg_item.h:88
bool half_sp_cost
Definition: rpg_item.h:96
bool reverse_state_effect
Definition: rpg_item.h:121
bool occasion_field1
Definition: rpg_item.h:104
int32_t ranged_trajectory
Definition: rpg_item.h:126
int32_t switch_id
Definition: rpg_item.h:114
int32_t recover_hp
Definition: rpg_item.h:101
bool no_terrain_damage
Definition: rpg_item.h:97
bool raise_evasion
Definition: rpg_item.h:95
bool prevent_critical
Definition: rpg_item.h:94
int32_t spi_points1
Definition: rpg_item.h:83
int32_t agi_points2
Definition: rpg_item.h:111
std::string description
Definition: rpg_item.h:77
bool occasion_field2
Definition: rpg_item.h:115
bool occasion_battle
Definition: rpg_item.h:116
int32_t ranged_target
Definition: rpg_item.h:127
int32_t skill_id
Definition: rpg_item.h:113
int32_t using_message
Definition: rpg_item.h:112
bool preemptive
Definition: rpg_item.h:90
bool ko_only
Definition: rpg_item.h:105
bool attack_all
Definition: rpg_item.h:92
int32_t weapon_animation
Definition: rpg_item.h:122
std::vector< bool > actor_set
Definition: rpg_item.h:117
int32_t recover_sp_rate
Definition: rpg_item.h:102
std::vector< bool > state_set
Definition: rpg_item.h:118
std::vector< ItemAnimation > animation_data
Definition: rpg_item.h:123
int32_t agi_points1
Definition: rpg_item.h:84
bool two_handed
Definition: rpg_item.h:85
int32_t sp_cost
Definition: rpg_item.h:86
int32_t recover_sp
Definition: rpg_item.h:103
int32_t max_hp_points
Definition: rpg_item.h:106
int32_t def_points2
Definition: rpg_item.h:109
bool use_skill
Definition: rpg_item.h:124
std::vector< bool > attribute_set
Definition: rpg_item.h:119
bool dual_attack
Definition: rpg_item.h:91
int32_t animation_id
Definition: rpg_item.h:89
int32_t hit
Definition: rpg_item.h:87
int32_t uses
Definition: rpg_item.h:80