liblcf
Loading...
Searching...
No Matches
ldb_skill.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
17namespace lcf {
18
19// Read Skill.
20
21template <>
22char const* const Struct<rpg::Skill>::name = "Skill";
23static TypedField<rpg::Skill, DBString> static_name(
24 &rpg::Skill::name,
25 LDB_Reader::ChunkSkill::name,
26 "name",
27 0,
28 0
29);
30static TypedField<rpg::Skill, DBString> static_description(
31 &rpg::Skill::description,
32 LDB_Reader::ChunkSkill::description,
33 "description",
34 0,
35 0
36);
37static TypedField<rpg::Skill, DBString> static_using_message1(
38 &rpg::Skill::using_message1,
39 LDB_Reader::ChunkSkill::using_message1,
40 "using_message1",
41 0,
42 0
43);
44static TypedField<rpg::Skill, DBString> static_using_message2(
45 &rpg::Skill::using_message2,
46 LDB_Reader::ChunkSkill::using_message2,
47 "using_message2",
48 0,
49 0
50);
51static TypedField<rpg::Skill, int32_t> static_failure_message(
52 &rpg::Skill::failure_message,
53 LDB_Reader::ChunkSkill::failure_message,
54 "failure_message",
55 0,
56 0
57);
58static TypedField<rpg::Skill, int32_t> static_type(
59 &rpg::Skill::type,
60 LDB_Reader::ChunkSkill::type,
61 "type",
62 1,
63 0
64);
65static TypedField<rpg::Skill, int32_t> static_sp_type(
66 &rpg::Skill::sp_type,
67 LDB_Reader::ChunkSkill::sp_type,
68 "sp_type",
69 0,
70 1
71);
72static TypedField<rpg::Skill, int32_t> static_sp_percent(
73 &rpg::Skill::sp_percent,
74 LDB_Reader::ChunkSkill::sp_percent,
75 "sp_percent",
76 0,
77 1
78);
79static TypedField<rpg::Skill, int32_t> static_sp_cost(
80 &rpg::Skill::sp_cost,
81 LDB_Reader::ChunkSkill::sp_cost,
82 "sp_cost",
83 0,
84 0
85);
86static TypedField<rpg::Skill, int32_t> static_scope(
87 &rpg::Skill::scope,
88 LDB_Reader::ChunkSkill::scope,
89 "scope",
90 1,
91 0
92);
93static TypedField<rpg::Skill, int32_t> static_switch_id(
94 &rpg::Skill::switch_id,
95 LDB_Reader::ChunkSkill::switch_id,
96 "switch_id",
97 0,
98 0
99);
100static TypedField<rpg::Skill, int32_t> static_animation_id(
101 &rpg::Skill::animation_id,
102 LDB_Reader::ChunkSkill::animation_id,
103 "animation_id",
104 0,
105 0
106);
107static TypedField<rpg::Skill, rpg::Sound> static_sound_effect(
108 &rpg::Skill::sound_effect,
109 LDB_Reader::ChunkSkill::sound_effect,
110 "sound_effect",
111 1,
112 0
113);
114static TypedField<rpg::Skill, bool> static_occasion_field(
115 &rpg::Skill::occasion_field,
116 LDB_Reader::ChunkSkill::occasion_field,
117 "occasion_field",
118 0,
119 0
120);
121static TypedField<rpg::Skill, bool> static_occasion_battle(
122 &rpg::Skill::occasion_battle,
123 LDB_Reader::ChunkSkill::occasion_battle,
124 "occasion_battle",
125 0,
126 0
127);
128static TypedField<rpg::Skill, bool> static_reverse_state_effect(
129 &rpg::Skill::reverse_state_effect,
130 LDB_Reader::ChunkSkill::reverse_state_effect,
131 "reverse_state_effect",
132 0,
133 1
134);
135static TypedField<rpg::Skill, int32_t> static_physical_rate(
136 &rpg::Skill::physical_rate,
137 LDB_Reader::ChunkSkill::physical_rate,
138 "physical_rate",
139 0,
140 0
141);
142static TypedField<rpg::Skill, int32_t> static_magical_rate(
143 &rpg::Skill::magical_rate,
144 LDB_Reader::ChunkSkill::magical_rate,
145 "magical_rate",
146 0,
147 0
148);
149static TypedField<rpg::Skill, int32_t> static_variance(
150 &rpg::Skill::variance,
151 LDB_Reader::ChunkSkill::variance,
152 "variance",
153 0,
154 0
155);
156static TypedField<rpg::Skill, int32_t> static_power(
157 &rpg::Skill::power,
158 LDB_Reader::ChunkSkill::power,
159 "power",
160 0,
161 0
162);
163static TypedField<rpg::Skill, int32_t> static_hit(
164 &rpg::Skill::hit,
165 LDB_Reader::ChunkSkill::hit,
166 "hit",
167 0,
168 0
169);
170static TypedField<rpg::Skill, bool> static_affect_hp(
171 &rpg::Skill::affect_hp,
172 LDB_Reader::ChunkSkill::affect_hp,
173 "affect_hp",
174 0,
175 0
176);
177static TypedField<rpg::Skill, bool> static_affect_sp(
178 &rpg::Skill::affect_sp,
179 LDB_Reader::ChunkSkill::affect_sp,
180 "affect_sp",
181 0,
182 0
183);
184static TypedField<rpg::Skill, bool> static_affect_attack(
185 &rpg::Skill::affect_attack,
186 LDB_Reader::ChunkSkill::affect_attack,
187 "affect_attack",
188 0,
189 0
190);
191static TypedField<rpg::Skill, bool> static_affect_defense(
192 &rpg::Skill::affect_defense,
193 LDB_Reader::ChunkSkill::affect_defense,
194 "affect_defense",
195 0,
196 0
197);
198static TypedField<rpg::Skill, bool> static_affect_spirit(
199 &rpg::Skill::affect_spirit,
200 LDB_Reader::ChunkSkill::affect_spirit,
201 "affect_spirit",
202 0,
203 0
204);
205static TypedField<rpg::Skill, bool> static_affect_agility(
206 &rpg::Skill::affect_agility,
207 LDB_Reader::ChunkSkill::affect_agility,
208 "affect_agility",
209 0,
210 0
211);
212static TypedField<rpg::Skill, bool> static_absorb_damage(
213 &rpg::Skill::absorb_damage,
214 LDB_Reader::ChunkSkill::absorb_damage,
215 "absorb_damage",
216 0,
217 0
218);
219static TypedField<rpg::Skill, bool> static_ignore_defense(
220 &rpg::Skill::ignore_defense,
221 LDB_Reader::ChunkSkill::ignore_defense,
222 "ignore_defense",
223 0,
224 0
225);
226static SizeField<rpg::Skill, DBBitArray> static_size_state_effects(
227 &rpg::Skill::state_effects,
228 LDB_Reader::ChunkSkill::state_effects_size,
229 0,
230 0
231);
232static TypedField<rpg::Skill, DBBitArray> static_state_effects(
233 &rpg::Skill::state_effects,
234 LDB_Reader::ChunkSkill::state_effects,
235 "state_effects",
236 1,
237 0
238);
239static SizeField<rpg::Skill, DBBitArray> static_size_attribute_effects(
240 &rpg::Skill::attribute_effects,
241 LDB_Reader::ChunkSkill::attribute_effects_size,
242 0,
243 0
244);
245static TypedField<rpg::Skill, DBBitArray> static_attribute_effects(
246 &rpg::Skill::attribute_effects,
247 LDB_Reader::ChunkSkill::attribute_effects,
248 "attribute_effects",
249 1,
250 0
251);
252static TypedField<rpg::Skill, bool> static_affect_attr_defence(
253 &rpg::Skill::affect_attr_defence,
254 LDB_Reader::ChunkSkill::affect_attr_defence,
255 "affect_attr_defence",
256 0,
257 0
258);
259static TypedField<rpg::Skill, int32_t> static_battler_animation(
260 &rpg::Skill::battler_animation,
261 LDB_Reader::ChunkSkill::battler_animation,
262 "battler_animation",
263 0,
264 1
265);
267 &rpg::Skill::battler_animation_data,
268 LDB_Reader::ChunkSkill::battler_animation_data,
269 "battler_animation_data",
270 1,
271 1
272);
273static TypedField<rpg::Skill, DBString> static_easyrpg_battle2k3_message(
274 &rpg::Skill::easyrpg_battle2k3_message,
275 LDB_Reader::ChunkSkill::easyrpg_battle2k3_message,
276 "easyrpg_battle2k3_message",
277 0,
278 1
279);
280static TypedField<rpg::Skill, bool> static_easyrpg_ignore_reflect(
281 &rpg::Skill::easyrpg_ignore_reflect,
282 LDB_Reader::ChunkSkill::easyrpg_ignore_reflect,
283 "easyrpg_ignore_reflect",
284 0,
285 1
286);
287static TypedField<rpg::Skill, int32_t> static_easyrpg_state_hit(
288 &rpg::Skill::easyrpg_state_hit,
289 LDB_Reader::ChunkSkill::easyrpg_state_hit,
290 "easyrpg_state_hit",
291 0,
292 0
293);
294static TypedField<rpg::Skill, int32_t> static_easyrpg_attribute_hit(
295 &rpg::Skill::easyrpg_attribute_hit,
296 LDB_Reader::ChunkSkill::easyrpg_attribute_hit,
297 "easyrpg_attribute_hit",
298 0,
299 0
300);
301static TypedField<rpg::Skill, bool> static_easyrpg_ignore_restrict_skill(
302 &rpg::Skill::easyrpg_ignore_restrict_skill,
303 LDB_Reader::ChunkSkill::easyrpg_ignore_restrict_skill,
304 "easyrpg_ignore_restrict_skill",
305 0,
306 0
307);
308static TypedField<rpg::Skill, bool> static_easyrpg_ignore_restrict_magic(
309 &rpg::Skill::easyrpg_ignore_restrict_magic,
310 LDB_Reader::ChunkSkill::easyrpg_ignore_restrict_magic,
311 "easyrpg_ignore_restrict_magic",
312 0,
313 0
314);
315static TypedField<rpg::Skill, bool> static_easyrpg_enable_stat_absorbing(
316 &rpg::Skill::easyrpg_enable_stat_absorbing,
317 LDB_Reader::ChunkSkill::easyrpg_enable_stat_absorbing,
318 "easyrpg_enable_stat_absorbing",
319 0,
320 0
321);
322static TypedField<rpg::Skill, bool> static_easyrpg_affected_by_evade_all_physical_attacks(
323 &rpg::Skill::easyrpg_affected_by_evade_all_physical_attacks,
324 LDB_Reader::ChunkSkill::easyrpg_affected_by_evade_all_physical_attacks,
325 "easyrpg_affected_by_evade_all_physical_attacks",
326 0,
327 1
328);
329static TypedField<rpg::Skill, int32_t> static_easyrpg_critical_hit_chance(
330 &rpg::Skill::easyrpg_critical_hit_chance,
331 LDB_Reader::ChunkSkill::easyrpg_critical_hit_chance,
332 "easyrpg_critical_hit_chance",
333 0,
334 0
335);
336static TypedField<rpg::Skill, bool> static_easyrpg_affected_by_row_modifiers(
337 &rpg::Skill::easyrpg_affected_by_row_modifiers,
338 LDB_Reader::ChunkSkill::easyrpg_affected_by_row_modifiers,
339 "easyrpg_affected_by_row_modifiers",
340 0,
341 1
342);
343static TypedField<rpg::Skill, int32_t> static_easyrpg_hp_type(
344 &rpg::Skill::easyrpg_hp_type,
345 LDB_Reader::ChunkSkill::easyrpg_hp_type,
346 "easyrpg_hp_type",
347 0,
348 1
349);
350static TypedField<rpg::Skill, int32_t> static_easyrpg_hp_percent(
351 &rpg::Skill::easyrpg_hp_percent,
352 LDB_Reader::ChunkSkill::easyrpg_hp_percent,
353 "easyrpg_hp_percent",
354 0,
355 1
356);
357static TypedField<rpg::Skill, int32_t> static_easyrpg_hp_cost(
358 &rpg::Skill::easyrpg_hp_cost,
359 LDB_Reader::ChunkSkill::easyrpg_hp_cost,
360 "easyrpg_hp_cost",
361 0,
362 0
363);
364
365
366template <>
368 &static_name,
369 &static_description,
370 &static_using_message1,
371 &static_using_message2,
372 &static_failure_message,
373 &static_type,
374 &static_sp_type,
375 &static_sp_percent,
376 &static_sp_cost,
377 &static_scope,
378 &static_switch_id,
379 &static_animation_id,
380 &static_sound_effect,
381 &static_occasion_field,
382 &static_occasion_battle,
383 &static_reverse_state_effect,
384 &static_physical_rate,
385 &static_magical_rate,
386 &static_variance,
387 &static_power,
388 &static_hit,
389 &static_affect_hp,
390 &static_affect_sp,
391 &static_affect_attack,
392 &static_affect_defense,
393 &static_affect_spirit,
394 &static_affect_agility,
395 &static_absorb_damage,
396 &static_ignore_defense,
397 &static_size_state_effects,
398 &static_state_effects,
399 &static_size_attribute_effects,
400 &static_attribute_effects,
401 &static_affect_attr_defence,
402 &static_battler_animation,
403 &static_battler_animation_data,
404 &static_easyrpg_battle2k3_message,
405 &static_easyrpg_ignore_reflect,
406 &static_easyrpg_state_hit,
407 &static_easyrpg_attribute_hit,
408 &static_easyrpg_ignore_restrict_skill,
409 &static_easyrpg_ignore_restrict_magic,
410 &static_easyrpg_enable_stat_absorbing,
411 &static_easyrpg_affected_by_evade_all_physical_attacks,
412 &static_easyrpg_critical_hit_chance,
413 &static_easyrpg_affected_by_row_modifiers,
414 &static_easyrpg_hp_type,
415 &static_easyrpg_hp_percent,
416 &static_easyrpg_hp_cost,
417 NULL
418};
419
420template class Struct<rpg::Skill>;
421
422} //namespace lcf
Definition: dbarray.cpp:13