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) 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 Item.
20 
21 template <>
22 char const* const Struct<rpg::Item>::name = "Item";
23 static TypedField<rpg::Item, DBString> static_name(
24  &rpg::Item::name,
25  LDB_Reader::ChunkItem::name,
26  "name",
27  0,
28  0
29 );
30 static TypedField<rpg::Item, DBString> static_description(
31  &rpg::Item::description,
32  LDB_Reader::ChunkItem::description,
33  "description",
34  0,
35  0
36 );
37 static TypedField<rpg::Item, int32_t> static_type(
38  &rpg::Item::type,
39  LDB_Reader::ChunkItem::type,
40  "type",
41  1,
42  0
43 );
44 static TypedField<rpg::Item, int32_t> static_price(
45  &rpg::Item::price,
46  LDB_Reader::ChunkItem::price,
47  "price",
48  0,
49  0
50 );
51 static TypedField<rpg::Item, int32_t> static_uses(
52  &rpg::Item::uses,
53  LDB_Reader::ChunkItem::uses,
54  "uses",
55  0,
56  0
57 );
58 static TypedField<rpg::Item, int32_t> static_atk_points1(
59  &rpg::Item::atk_points1,
60  LDB_Reader::ChunkItem::atk_points1,
61  "atk_points1",
62  0,
63  0
64 );
65 static TypedField<rpg::Item, int32_t> static_def_points1(
66  &rpg::Item::def_points1,
67  LDB_Reader::ChunkItem::def_points1,
68  "def_points1",
69  0,
70  0
71 );
72 static TypedField<rpg::Item, int32_t> static_spi_points1(
73  &rpg::Item::spi_points1,
74  LDB_Reader::ChunkItem::spi_points1,
75  "spi_points1",
76  0,
77  0
78 );
79 static TypedField<rpg::Item, int32_t> static_agi_points1(
80  &rpg::Item::agi_points1,
81  LDB_Reader::ChunkItem::agi_points1,
82  "agi_points1",
83  0,
84  0
85 );
86 static TypedField<rpg::Item, bool> static_two_handed(
87  &rpg::Item::two_handed,
88  LDB_Reader::ChunkItem::two_handed,
89  "two_handed",
90  1,
91  0
92 );
93 static TypedField<rpg::Item, int32_t> static_sp_cost(
94  &rpg::Item::sp_cost,
95  LDB_Reader::ChunkItem::sp_cost,
96  "sp_cost",
97  0,
98  0
99 );
100 static TypedField<rpg::Item, int32_t> static_hit(
101  &rpg::Item::hit,
102  LDB_Reader::ChunkItem::hit,
103  "hit",
104  0,
105  0
106 );
107 static TypedField<rpg::Item, int32_t> static_critical_hit(
108  &rpg::Item::critical_hit,
109  LDB_Reader::ChunkItem::critical_hit,
110  "critical_hit",
111  0,
112  0
113 );
114 static TypedField<rpg::Item, int32_t> static_animation_id(
115  &rpg::Item::animation_id,
116  LDB_Reader::ChunkItem::animation_id,
117  "animation_id",
118  0,
119  0
120 );
121 static TypedField<rpg::Item, bool> static_preemptive(
122  &rpg::Item::preemptive,
123  LDB_Reader::ChunkItem::preemptive,
124  "preemptive",
125  0,
126  0
127 );
128 static TypedField<rpg::Item, bool> static_dual_attack(
129  &rpg::Item::dual_attack,
130  LDB_Reader::ChunkItem::dual_attack,
131  "dual_attack",
132  0,
133  0
134 );
135 static TypedField<rpg::Item, bool> static_attack_all(
136  &rpg::Item::attack_all,
137  LDB_Reader::ChunkItem::attack_all,
138  "attack_all",
139  0,
140  0
141 );
142 static TypedField<rpg::Item, bool> static_ignore_evasion(
143  &rpg::Item::ignore_evasion,
144  LDB_Reader::ChunkItem::ignore_evasion,
145  "ignore_evasion",
146  0,
147  0
148 );
149 static TypedField<rpg::Item, bool> static_prevent_critical(
150  &rpg::Item::prevent_critical,
151  LDB_Reader::ChunkItem::prevent_critical,
152  "prevent_critical",
153  0,
154  0
155 );
156 static TypedField<rpg::Item, bool> static_raise_evasion(
157  &rpg::Item::raise_evasion,
158  LDB_Reader::ChunkItem::raise_evasion,
159  "raise_evasion",
160  0,
161  0
162 );
163 static TypedField<rpg::Item, bool> static_half_sp_cost(
164  &rpg::Item::half_sp_cost,
165  LDB_Reader::ChunkItem::half_sp_cost,
166  "half_sp_cost",
167  0,
168  0
169 );
170 static TypedField<rpg::Item, bool> static_no_terrain_damage(
171  &rpg::Item::no_terrain_damage,
172  LDB_Reader::ChunkItem::no_terrain_damage,
173  "no_terrain_damage",
174  0,
175  0
176 );
177 static TypedField<rpg::Item, bool> static_cursed(
178  &rpg::Item::cursed,
179  LDB_Reader::ChunkItem::cursed,
180  "cursed",
181  0,
182  1
183 );
184 static TypedField<rpg::Item, bool> static_entire_party(
185  &rpg::Item::entire_party,
186  LDB_Reader::ChunkItem::entire_party,
187  "entire_party",
188  1,
189  0
190 );
191 static TypedField<rpg::Item, int32_t> static_recover_hp_rate(
192  &rpg::Item::recover_hp_rate,
193  LDB_Reader::ChunkItem::recover_hp_rate,
194  "recover_hp_rate",
195  0,
196  0
197 );
198 static TypedField<rpg::Item, int32_t> static_recover_hp(
199  &rpg::Item::recover_hp,
200  LDB_Reader::ChunkItem::recover_hp,
201  "recover_hp",
202  0,
203  0
204 );
205 static TypedField<rpg::Item, int32_t> static_recover_sp_rate(
206  &rpg::Item::recover_sp_rate,
207  LDB_Reader::ChunkItem::recover_sp_rate,
208  "recover_sp_rate",
209  0,
210  0
211 );
212 static TypedField<rpg::Item, int32_t> static_recover_sp(
213  &rpg::Item::recover_sp,
214  LDB_Reader::ChunkItem::recover_sp,
215  "recover_sp",
216  0,
217  0
218 );
219 static TypedField<rpg::Item, bool> static_occasion_field1(
220  &rpg::Item::occasion_field1,
221  LDB_Reader::ChunkItem::occasion_field1,
222  "occasion_field1",
223  0,
224  0
225 );
226 static TypedField<rpg::Item, bool> static_ko_only(
227  &rpg::Item::ko_only,
228  LDB_Reader::ChunkItem::ko_only,
229  "ko_only",
230  0,
231  0
232 );
233 static TypedField<rpg::Item, int32_t> static_max_hp_points(
234  &rpg::Item::max_hp_points,
235  LDB_Reader::ChunkItem::max_hp_points,
236  "max_hp_points",
237  0,
238  0
239 );
240 static TypedField<rpg::Item, int32_t> static_max_sp_points(
241  &rpg::Item::max_sp_points,
242  LDB_Reader::ChunkItem::max_sp_points,
243  "max_sp_points",
244  0,
245  0
246 );
247 static TypedField<rpg::Item, int32_t> static_atk_points2(
248  &rpg::Item::atk_points2,
249  LDB_Reader::ChunkItem::atk_points2,
250  "atk_points2",
251  0,
252  0
253 );
254 static TypedField<rpg::Item, int32_t> static_def_points2(
255  &rpg::Item::def_points2,
256  LDB_Reader::ChunkItem::def_points2,
257  "def_points2",
258  0,
259  0
260 );
261 static TypedField<rpg::Item, int32_t> static_spi_points2(
262  &rpg::Item::spi_points2,
263  LDB_Reader::ChunkItem::spi_points2,
264  "spi_points2",
265  0,
266  0
267 );
268 static TypedField<rpg::Item, int32_t> static_agi_points2(
269  &rpg::Item::agi_points2,
270  LDB_Reader::ChunkItem::agi_points2,
271  "agi_points2",
272  0,
273  0
274 );
275 static TypedField<rpg::Item, int32_t> static_using_message(
276  &rpg::Item::using_message,
277  LDB_Reader::ChunkItem::using_message,
278  "using_message",
279  1,
280  0
281 );
282 static TypedField<rpg::Item, int32_t> static_skill_id(
283  &rpg::Item::skill_id,
284  LDB_Reader::ChunkItem::skill_id,
285  "skill_id",
286  0,
287  0
288 );
289 static TypedField<rpg::Item, int32_t> static_switch_id(
290  &rpg::Item::switch_id,
291  LDB_Reader::ChunkItem::switch_id,
292  "switch_id",
293  0,
294  0
295 );
296 static TypedField<rpg::Item, bool> static_occasion_field2(
297  &rpg::Item::occasion_field2,
298  LDB_Reader::ChunkItem::occasion_field2,
299  "occasion_field2",
300  0,
301  0
302 );
303 static TypedField<rpg::Item, bool> static_occasion_battle(
304  &rpg::Item::occasion_battle,
305  LDB_Reader::ChunkItem::occasion_battle,
306  "occasion_battle",
307  0,
308  0
309 );
310 static SizeField<rpg::Item, DBBitArray> static_size_actor_set(
311  &rpg::Item::actor_set,
312  LDB_Reader::ChunkItem::actor_set_size,
313  0,
314  0
315 );
316 static TypedField<rpg::Item, DBBitArray> static_actor_set(
317  &rpg::Item::actor_set,
318  LDB_Reader::ChunkItem::actor_set,
319  "actor_set",
320  1,
321  0
322 );
323 static SizeField<rpg::Item, DBBitArray> static_size_state_set(
324  &rpg::Item::state_set,
325  LDB_Reader::ChunkItem::state_set_size,
326  0,
327  0
328 );
329 static TypedField<rpg::Item, DBBitArray> static_state_set(
330  &rpg::Item::state_set,
331  LDB_Reader::ChunkItem::state_set,
332  "state_set",
333  1,
334  0
335 );
336 static SizeField<rpg::Item, DBBitArray> static_size_attribute_set(
337  &rpg::Item::attribute_set,
338  LDB_Reader::ChunkItem::attribute_set_size,
339  0,
340  0
341 );
342 static TypedField<rpg::Item, DBBitArray> static_attribute_set(
343  &rpg::Item::attribute_set,
344  LDB_Reader::ChunkItem::attribute_set,
345  "attribute_set",
346  1,
347  0
348 );
349 static TypedField<rpg::Item, int32_t> static_state_chance(
350  &rpg::Item::state_chance,
351  LDB_Reader::ChunkItem::state_chance,
352  "state_chance",
353  0,
354  0
355 );
356 static TypedField<rpg::Item, bool> static_reverse_state_effect(
357  &rpg::Item::reverse_state_effect,
358  LDB_Reader::ChunkItem::reverse_state_effect,
359  "reverse_state_effect",
360  0,
361  0
362 );
363 static TypedField<rpg::Item, int32_t> static_weapon_animation(
364  &rpg::Item::weapon_animation,
365  LDB_Reader::ChunkItem::weapon_animation,
366  "weapon_animation",
367  0,
368  1
369 );
371  &rpg::Item::animation_data,
372  LDB_Reader::ChunkItem::animation_data,
373  "animation_data",
374  1,
375  1
376 );
377 static TypedField<rpg::Item, bool> static_use_skill(
378  &rpg::Item::use_skill,
379  LDB_Reader::ChunkItem::use_skill,
380  "use_skill",
381  0,
382  1
383 );
384 static SizeField<rpg::Item, DBBitArray> static_size_class_set(
385  &rpg::Item::class_set,
386  LDB_Reader::ChunkItem::class_set_size,
387  0,
388  1
389 );
390 static TypedField<rpg::Item, DBBitArray> static_class_set(
391  &rpg::Item::class_set,
392  LDB_Reader::ChunkItem::class_set,
393  "class_set",
394  1,
395  1
396 );
397 static TypedField<rpg::Item, int32_t> static_ranged_trajectory(
398  &rpg::Item::ranged_trajectory,
399  LDB_Reader::ChunkItem::ranged_trajectory,
400  "ranged_trajectory",
401  0,
402  0
403 );
404 static TypedField<rpg::Item, int32_t> static_ranged_target(
405  &rpg::Item::ranged_target,
406  LDB_Reader::ChunkItem::ranged_target,
407  "ranged_target",
408  0,
409  0
410 );
411 static TypedField<rpg::Item, DBString> static_easyrpg_using_message(
412  &rpg::Item::easyrpg_using_message,
413  LDB_Reader::ChunkItem::easyrpg_using_message,
414  "easyrpg_using_message",
415  0,
416  0
417 );
418 static TypedField<rpg::Item, int32_t> static_easyrpg_max_count(
419  &rpg::Item::easyrpg_max_count,
420  LDB_Reader::ChunkItem::easyrpg_max_count,
421  "easyrpg_max_count",
422  0,
423  0
424 );
425 
426 
427 template <>
429  &static_name,
430  &static_description,
431  &static_type,
432  &static_price,
433  &static_uses,
434  &static_atk_points1,
435  &static_def_points1,
436  &static_spi_points1,
437  &static_agi_points1,
438  &static_two_handed,
439  &static_sp_cost,
440  &static_hit,
441  &static_critical_hit,
442  &static_animation_id,
443  &static_preemptive,
444  &static_dual_attack,
445  &static_attack_all,
446  &static_ignore_evasion,
447  &static_prevent_critical,
448  &static_raise_evasion,
449  &static_half_sp_cost,
450  &static_no_terrain_damage,
451  &static_cursed,
452  &static_entire_party,
453  &static_recover_hp_rate,
454  &static_recover_hp,
455  &static_recover_sp_rate,
456  &static_recover_sp,
457  &static_occasion_field1,
458  &static_ko_only,
459  &static_max_hp_points,
460  &static_max_sp_points,
461  &static_atk_points2,
462  &static_def_points2,
463  &static_spi_points2,
464  &static_agi_points2,
465  &static_using_message,
466  &static_skill_id,
467  &static_switch_id,
468  &static_occasion_field2,
469  &static_occasion_battle,
470  &static_size_actor_set,
471  &static_actor_set,
472  &static_size_state_set,
473  &static_state_set,
474  &static_size_attribute_set,
475  &static_attribute_set,
476  &static_state_chance,
477  &static_reverse_state_effect,
478  &static_weapon_animation,
479  &static_animation_data,
480  &static_use_skill,
481  &static_size_class_set,
482  &static_class_set,
483  &static_ranged_trajectory,
484  &static_ranged_target,
485  &static_easyrpg_using_message,
486  &static_easyrpg_max_count,
487  NULL
488 };
489 
490 template class Struct<rpg::Item>;
491 
492 } //namespace lcf
Definition: dbarray.cpp:13