1 /* !!!! GENERATED FILE - DO NOT EDIT !!!! 2 * -------------------------------------- 3 * 4 * This file is part of liblcf. Copyright (c) 2021 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 Skill. 20 21 template <> 22 char const* const Struct<rpg::Skill>::name = "Skill"; 23 static TypedField<rpg::Skill, DBString> static_name( 24 &rpg::Skill::name, 25 LDB_Reader::ChunkSkill::name, 26 "name", 27 0, 28 0 29 ); 30 static TypedField<rpg::Skill, DBString> static_description( 31 &rpg::Skill::description, 32 LDB_Reader::ChunkSkill::description, 33 "description", 34 0, 35 0 36 ); 37 static 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 ); 44 static 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 ); 51 static 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 ); 58 static TypedField<rpg::Skill, int32_t> static_type( 59 &rpg::Skill::type, 60 LDB_Reader::ChunkSkill::type, 61 "type", 62 1, 63 0 64 ); 65 static 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 ); 72 static 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 ); 79 static 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 ); 86 static TypedField<rpg::Skill, int32_t> static_scope( 87 &rpg::Skill::scope, 88 LDB_Reader::ChunkSkill::scope, 89 "scope", 90 1, 91 0 92 ); 93 static 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 ); 100 static 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 ); 107 static 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 ); 114 static 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 ); 121 static 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 ); 128 static 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 ); 135 static 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 ); 142 static 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 ); 149 static TypedField<rpg::Skill, int32_t> static_variance( 150 &rpg::Skill::variance, 151 LDB_Reader::ChunkSkill::variance, 152 "variance", 153 0, 154 0 155 ); 156 static TypedField<rpg::Skill, int32_t> static_power( 157 &rpg::Skill::power, 158 LDB_Reader::ChunkSkill::power, 159 "power", 160 0, 161 0 162 ); 163 static TypedField<rpg::Skill, int32_t> static_hit( 164 &rpg::Skill::hit, 165 LDB_Reader::ChunkSkill::hit, 166 "hit", 167 0, 168 0 169 ); 170 static 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 ); 177 static 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 ); 184 static 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 ); 191 static 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 ); 198 static 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 ); 205 static 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 ); 212 static 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 ); 219 static 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 ); 226 static 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 ); 232 static 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 ); 239 static 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 ); 245 static 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 ); 252 static 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 ); 259 static 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 ); 266 static TypedField<rpg::Skill, std::vector<rpg::BattlerAnimationItemSkill>> static_battler_animation_data( 267 &rpg::Skill::battler_animation_data, 268 LDB_Reader::ChunkSkill::battler_animation_data, 269 "battler_animation_data", 270 1, 271 1 272 ); 273 static 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 ); 280 static 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 ); 287 static 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 ); 294 static 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 ); 301 static 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 ); 308 static 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 ); 315 static 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 ); 322 323 324 template <> 325 Field<rpg::Skill> const* Struct<rpg::Skill>::fields[] = { 326 &static_name, 327 &static_description, 328 &static_using_message1, 329 &static_using_message2, 330 &static_failure_message, 331 &static_type, 332 &static_sp_type, 333 &static_sp_percent, 334 &static_sp_cost, 335 &static_scope, 336 &static_switch_id, 337 &static_animation_id, 338 &static_sound_effect, 339 &static_occasion_field, 340 &static_occasion_battle, 341 &static_reverse_state_effect, 342 &static_physical_rate, 343 &static_magical_rate, 344 &static_variance, 345 &static_power, 346 &static_hit, 347 &static_affect_hp, 348 &static_affect_sp, 349 &static_affect_attack, 350 &static_affect_defense, 351 &static_affect_spirit, 352 &static_affect_agility, 353 &static_absorb_damage, 354 &static_ignore_defense, 355 &static_size_state_effects, 356 &static_state_effects, 357 &static_size_attribute_effects, 358 &static_attribute_effects, 359 &static_affect_attr_defence, 360 &static_battler_animation, 361 &static_battler_animation_data, 362 &static_easyrpg_battle2k3_message, 363 &static_easyrpg_ignore_reflect, 364 &static_easyrpg_state_hit, 365 &static_easyrpg_attribute_hit, 366 &static_easyrpg_ignore_restrict_skill, 367 &static_easyrpg_ignore_restrict_magic, 368 &static_easyrpg_enable_stat_absorbing, 369 NULL 370 }; 371 372 template class Struct<rpg::Skill>; 373 374 } //namespace lcf 375