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>;
LDB_Reader::ChunkSkill::battler_animation
@ battler_animation
Definition: ldb_chunks.h:414
RPG::Skill::animation_id
int32_t animation_id
Definition: rpg_skill.h:78
LDB_Reader::ChunkSkill::power
@ power
Definition: ldb_chunks.h:384
LDB_Reader::ChunkSkill::occasion_battle
@ occasion_battle
Definition: ldb_chunks.h:374
ldb_chunks.h
LDB_Reader::ChunkSkill::hit
@ hit
Definition: ldb_chunks.h:386
RPG::Skill::affect_sp
bool affect_sp
Definition: rpg_skill.h:89
SizeField
Definition: reader_struct.h:436
RPG::Skill::absorb_damage
bool absorb_damage
Definition: rpg_skill.h:94
RPG::Skill::affect_defense
bool affect_defense
Definition: rpg_skill.h:91
RPG::Skill::battler_animation
int32_t battler_animation
Definition: rpg_skill.h:99
RPG::Skill::name
std::string name
Definition: rpg_skill.h:67
RPG::Skill::type
int32_t type
Definition: rpg_skill.h:72
LDB_Reader::ChunkSkill::description
@ description
Definition: ldb_chunks.h:348
RPG::Skill::reverse_state_effect
bool reverse_state_effect
Definition: rpg_skill.h:82
Field
Definition: reader_struct.h:315
TypedField
Definition: reader_struct.h:348
RPG::Skill::ignore_defense
bool ignore_defense
Definition: rpg_skill.h:95
RPG::Skill::failure_message
int32_t failure_message
Definition: rpg_skill.h:71
LDB_Reader::ChunkSkill::state_effects
@ state_effects
Definition: ldb_chunks.h:406
RPG::Skill::using_message1
std::string using_message1
Definition: rpg_skill.h:69
LDB_Reader::ChunkSkill::using_message1
@ using_message1
Definition: ldb_chunks.h:350
Struct
Definition: reader_struct.h:43
RPG::Skill::affect_attr_defence
bool affect_attr_defence
Definition: rpg_skill.h:98
LDB_Reader::ChunkSkill::battler_animation_data
@ battler_animation_data
Definition: ldb_chunks.h:416
LDB_Reader::ChunkSkill::ignore_defense
@ ignore_defense
Definition: ldb_chunks.h:402
RPG::Skill::hit
int32_t hit
Definition: rpg_skill.h:87
RPG::Skill::state_effects
std::vector< bool > state_effects
Definition: rpg_skill.h:96
LDB_Reader::ChunkSkill::name
@ name
Definition: ldb_chunks.h:346
RPG::Skill::occasion_field
bool occasion_field
Definition: rpg_skill.h:80
LDB_Reader::ChunkSkill::sp_percent
@ sp_percent
Definition: ldb_chunks.h:360
LDB_Reader::ChunkSkill::sp_type
@ sp_type
Definition: ldb_chunks.h:358
LDB_Reader::ChunkSkill::type
@ type
Definition: ldb_chunks.h:356
LDB_Reader::ChunkSkill::attribute_effects_size
@ attribute_effects_size
Definition: ldb_chunks.h:408
LDB_Reader::ChunkSkill::variance
@ variance
Definition: ldb_chunks.h:382
RPG::Skill::sp_type
int32_t sp_type
Definition: rpg_skill.h:73
LDB_Reader::ChunkSkill::animation_id
@ animation_id
Definition: ldb_chunks.h:368
RPG::Skill::affect_attack
bool affect_attack
Definition: rpg_skill.h:90
LDB_Reader::ChunkSkill::scope
@ scope
Definition: ldb_chunks.h:364
LDB_Reader::ChunkSkill::sound_effect
@ sound_effect
Definition: ldb_chunks.h:370
RPG::Skill::using_message2
std::string using_message2
Definition: rpg_skill.h:70
RPG::Skill::power
int32_t power
Definition: rpg_skill.h:86
LDB_Reader::ChunkSkill::sp_cost
@ sp_cost
Definition: ldb_chunks.h:362
RPG::Skill::occasion_battle
bool occasion_battle
Definition: rpg_skill.h:81
LDB_Reader::ChunkSkill::reverse_state_effect
@ reverse_state_effect
Definition: ldb_chunks.h:376
RPG::Skill::physical_rate
int32_t physical_rate
Definition: rpg_skill.h:83
LDB_Reader::ChunkSkill::magical_rate
@ magical_rate
Definition: ldb_chunks.h:380
RPG::Skill::description
std::string description
Definition: rpg_skill.h:68
RPG::Skill::affect_agility
bool affect_agility
Definition: rpg_skill.h:93
LDB_Reader::ChunkSkill::physical_rate
@ physical_rate
Definition: ldb_chunks.h:378
LDB_Reader::ChunkSkill::affect_agility
@ affect_agility
Definition: ldb_chunks.h:398
LDB_Reader::ChunkSkill::affect_sp
@ affect_sp
Definition: ldb_chunks.h:390
RPG::Skill::sound_effect
Sound sound_effect
Definition: rpg_skill.h:79
RPG::Skill::affect_hp
bool affect_hp
Definition: rpg_skill.h:88
LDB_Reader::ChunkSkill::affect_attr_defence
@ affect_attr_defence
Definition: ldb_chunks.h:412
RPG::Skill::sp_percent
int32_t sp_percent
Definition: rpg_skill.h:74
LDB_Reader::ChunkSkill::absorb_damage
@ absorb_damage
Definition: ldb_chunks.h:400
LDB_Reader::ChunkSkill::failure_message
@ failure_message
Definition: ldb_chunks.h:354
RPG::Skill::battler_animation_data
std::vector< BattlerAnimationData > battler_animation_data
Definition: rpg_skill.h:100
RPG::Skill::variance
int32_t variance
Definition: rpg_skill.h:85
LDB_Reader::ChunkSkill::occasion_field
@ occasion_field
Definition: ldb_chunks.h:372
LDB_Reader::ChunkSkill::affect_defense
@ affect_defense
Definition: ldb_chunks.h:394
LDB_Reader::ChunkSkill::using_message2
@ using_message2
Definition: ldb_chunks.h:352
RPG::Skill::magical_rate
int32_t magical_rate
Definition: rpg_skill.h:84
reader_struct_impl.h
LDB_Reader::ChunkSkill::affect_spirit
@ affect_spirit
Definition: ldb_chunks.h:396
RPG::Skill::sp_cost
int32_t sp_cost
Definition: rpg_skill.h:75
LDB_Reader::ChunkSkill::attribute_effects
@ attribute_effects
Definition: ldb_chunks.h:410
LDB_Reader::ChunkSkill::state_effects_size
@ state_effects_size
Definition: ldb_chunks.h:404
RPG::Skill::switch_id
int32_t switch_id
Definition: rpg_skill.h:77
RPG::Skill::attribute_effects
std::vector< bool > attribute_effects
Definition: rpg_skill.h:97
RPG::Skill::affect_spirit
bool affect_spirit
Definition: rpg_skill.h:92
LDB_Reader::ChunkSkill::affect_attack
@ affect_attack
Definition: ldb_chunks.h:392
LDB_Reader::ChunkSkill::affect_hp
@ affect_hp
Definition: ldb_chunks.h:388
LDB_Reader::ChunkSkill::switch_id
@ switch_id
Definition: ldb_chunks.h:366
ldb_reader.h
RPG::Skill::scope
int32_t scope
Definition: rpg_skill.h:76