liblcf
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) 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 Skill.
18 
19 template <>
20 char const* const Struct<RPG::Skill>::name = "Skill";
21 static TypedField<RPG::Skill, std::string> static_name(
24  "name",
25  0,
26  0
27 );
28 static TypedField<RPG::Skill, std::string> static_description(
31  "description",
32  0,
33  0
34 );
35 static TypedField<RPG::Skill, std::string> static_using_message1(
38  "using_message1",
39  0,
40  0
41 );
42 static TypedField<RPG::Skill, std::string> static_using_message2(
45  "using_message2",
46  0,
47  0
48 );
49 static TypedField<RPG::Skill, int32_t> static_failure_message(
52  "failure_message",
53  0,
54  0
55 );
56 static TypedField<RPG::Skill, int32_t> static_type(
59  "type",
60  1,
61  0
62 );
63 static TypedField<RPG::Skill, int32_t> static_sp_type(
66  "sp_type",
67  0,
68  1
69 );
70 static TypedField<RPG::Skill, int32_t> static_sp_percent(
73  "sp_percent",
74  0,
75  1
76 );
77 static TypedField<RPG::Skill, int32_t> static_sp_cost(
80  "sp_cost",
81  0,
82  0
83 );
84 static TypedField<RPG::Skill, int32_t> static_scope(
87  "scope",
88  1,
89  0
90 );
91 static TypedField<RPG::Skill, int32_t> static_switch_id(
94  "switch_id",
95  0,
96  0
97 );
98 static TypedField<RPG::Skill, int32_t> static_animation_id(
101  "animation_id",
102  0,
103  0
104 );
105 static TypedField<RPG::Skill, RPG::Sound> static_sound_effect(
108  "sound_effect",
109  1,
110  0
111 );
112 static TypedField<RPG::Skill, bool> static_occasion_field(
115  "occasion_field",
116  0,
117  0
118 );
119 static TypedField<RPG::Skill, bool> static_occasion_battle(
122  "occasion_battle",
123  0,
124  0
125 );
126 static TypedField<RPG::Skill, bool> static_reverse_state_effect(
129  "reverse_state_effect",
130  0,
131  1
132 );
133 static TypedField<RPG::Skill, int32_t> static_physical_rate(
136  "physical_rate",
137  0,
138  0
139 );
140 static TypedField<RPG::Skill, int32_t> static_magical_rate(
143  "magical_rate",
144  0,
145  0
146 );
147 static TypedField<RPG::Skill, int32_t> static_variance(
150  "variance",
151  0,
152  0
153 );
154 static TypedField<RPG::Skill, int32_t> static_power(
157  "power",
158  0,
159  0
160 );
161 static TypedField<RPG::Skill, int32_t> static_hit(
164  "hit",
165  0,
166  0
167 );
168 static TypedField<RPG::Skill, bool> static_affect_hp(
171  "affect_hp",
172  0,
173  0
174 );
175 static TypedField<RPG::Skill, bool> static_affect_sp(
178  "affect_sp",
179  0,
180  0
181 );
182 static TypedField<RPG::Skill, bool> static_affect_attack(
185  "affect_attack",
186  0,
187  0
188 );
189 static TypedField<RPG::Skill, bool> static_affect_defense(
192  "affect_defense",
193  0,
194  0
195 );
196 static TypedField<RPG::Skill, bool> static_affect_spirit(
199  "affect_spirit",
200  0,
201  0
202 );
203 static TypedField<RPG::Skill, bool> static_affect_agility(
206  "affect_agility",
207  0,
208  0
209 );
210 static TypedField<RPG::Skill, bool> static_absorb_damage(
213  "absorb_damage",
214  0,
215  0
216 );
217 static TypedField<RPG::Skill, bool> static_ignore_defense(
220  "ignore_defense",
221  0,
222  0
223 );
224 static SizeField<RPG::Skill, bool> static_size_state_effects(
227  0,
228  0
229 );
230 static TypedField<RPG::Skill, std::vector<bool>> static_state_effects(
233  "state_effects",
234  1,
235  0
236 );
237 static SizeField<RPG::Skill, bool> static_size_attribute_effects(
240  0,
241  0
242 );
243 static TypedField<RPG::Skill, std::vector<bool>> static_attribute_effects(
246  "attribute_effects",
247  1,
248  0
249 );
250 static TypedField<RPG::Skill, bool> static_affect_attr_defence(
253  "affect_attr_defence",
254  0,
255  0
256 );
257 static TypedField<RPG::Skill, int32_t> static_battler_animation(
260  "battler_animation",
261  0,
262  1
263 );
264 static TypedField<RPG::Skill, std::vector<RPG::BattlerAnimationData>> static_battler_animation_data(
267  "battler_animation_data",
268  1,
269  1
270 );
271 
272 
273 template <>
275  &static_name,
276  &static_description,
277  &static_using_message1,
278  &static_using_message2,
279  &static_failure_message,
280  &static_type,
281  &static_sp_type,
282  &static_sp_percent,
283  &static_sp_cost,
284  &static_scope,
285  &static_switch_id,
286  &static_animation_id,
287  &static_sound_effect,
288  &static_occasion_field,
289  &static_occasion_battle,
290  &static_reverse_state_effect,
291  &static_physical_rate,
292  &static_magical_rate,
293  &static_variance,
294  &static_power,
295  &static_hit,
296  &static_affect_hp,
297  &static_affect_sp,
298  &static_affect_attack,
299  &static_affect_defense,
300  &static_affect_spirit,
301  &static_affect_agility,
302  &static_absorb_damage,
303  &static_ignore_defense,
304  &static_size_state_effects,
305  &static_state_effects,
306  &static_size_attribute_effects,
307  &static_attribute_effects,
308  &static_affect_attr_defence,
309  &static_battler_animation,
310  &static_battler_animation_data,
311  NULL
312 };
313 
314 template class Struct<RPG::Skill>;
bool reverse_state_effect
Definition: rpg_skill.h:82
int32_t switch_id
Definition: rpg_skill.h:77
Sound sound_effect
Definition: rpg_skill.h:79
int32_t variance
Definition: rpg_skill.h:85
bool affect_defense
Definition: rpg_skill.h:91
bool affect_hp
Definition: rpg_skill.h:88
int32_t scope
Definition: rpg_skill.h:76
int32_t sp_percent
Definition: rpg_skill.h:74
int32_t type
Definition: rpg_skill.h:72
std::string using_message2
Definition: rpg_skill.h:70
int32_t animation_id
Definition: rpg_skill.h:78
bool affect_spirit
Definition: rpg_skill.h:92
int32_t magical_rate
Definition: rpg_skill.h:84
std::string using_message1
Definition: rpg_skill.h:69
int32_t physical_rate
Definition: rpg_skill.h:83
bool affect_attr_defence
Definition: rpg_skill.h:98
bool affect_agility
Definition: rpg_skill.h:93
bool absorb_damage
Definition: rpg_skill.h:94
std::vector< bool > attribute_effects
Definition: rpg_skill.h:97
std::vector< bool > state_effects
Definition: rpg_skill.h:96
int32_t sp_type
Definition: rpg_skill.h:73
int32_t battler_animation
Definition: rpg_skill.h:99
int32_t sp_cost
Definition: rpg_skill.h:75
int32_t failure_message
Definition: rpg_skill.h:71
std::string description
Definition: rpg_skill.h:68
bool affect_attack
Definition: rpg_skill.h:90
std::string name
Definition: rpg_skill.h:67
bool occasion_field
Definition: rpg_skill.h:80
int32_t hit
Definition: rpg_skill.h:87
bool affect_sp
Definition: rpg_skill.h:89
int32_t power
Definition: rpg_skill.h:86
bool occasion_battle
Definition: rpg_skill.h:81
bool ignore_defense
Definition: rpg_skill.h:95
std::vector< BattlerAnimationData > battler_animation_data
Definition: rpg_skill.h:100