liblcf
ldb_enemy.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 Enemy.
18 
19 template <>
20 char const* const Struct<RPG::Enemy>::name = "Enemy";
21 static TypedField<RPG::Enemy, std::string> static_name(
24  "name",
25  0,
26  0
27 );
28 static TypedField<RPG::Enemy, std::string> static_battler_name(
31  "battler_name",
32  0,
33  0
34 );
35 static TypedField<RPG::Enemy, int32_t> static_battler_hue(
38  "battler_hue",
39  0,
40  0
41 );
42 static TypedField<RPG::Enemy, int32_t> static_max_hp(
45  "max_hp",
46  0,
47  0
48 );
49 static TypedField<RPG::Enemy, int32_t> static_max_sp(
52  "max_sp",
53  0,
54  0
55 );
56 static TypedField<RPG::Enemy, int32_t> static_attack(
59  "attack",
60  0,
61  0
62 );
63 static TypedField<RPG::Enemy, int32_t> static_defense(
66  "defense",
67  0,
68  0
69 );
70 static TypedField<RPG::Enemy, int32_t> static_spirit(
73  "spirit",
74  0,
75  0
76 );
77 static TypedField<RPG::Enemy, int32_t> static_agility(
80  "agility",
81  0,
82  0
83 );
84 static TypedField<RPG::Enemy, bool> static_transparent(
87  "transparent",
88  0,
89  0
90 );
91 static TypedField<RPG::Enemy, int32_t> static_exp(
94  "exp",
95  0,
96  0
97 );
98 static TypedField<RPG::Enemy, int32_t> static_gold(
101  "gold",
102  0,
103  0
104 );
105 static TypedField<RPG::Enemy, int32_t> static_drop_id(
108  "drop_id",
109  0,
110  0
111 );
112 static TypedField<RPG::Enemy, int32_t> static_drop_prob(
115  "drop_prob",
116  0,
117  0
118 );
119 static TypedField<RPG::Enemy, bool> static_critical_hit(
122  "critical_hit",
123  0,
124  0
125 );
126 static TypedField<RPG::Enemy, int32_t> static_critical_hit_chance(
129  "critical_hit_chance",
130  0,
131  0
132 );
133 static TypedField<RPG::Enemy, bool> static_miss(
136  "miss",
137  0,
138  0
139 );
140 static TypedField<RPG::Enemy, bool> static_levitate(
143  "levitate",
144  0,
145  0
146 );
147 static SizeField<RPG::Enemy, uint8_t> static_size_state_ranks(
150  0,
151  0
152 );
153 static TypedField<RPG::Enemy, std::vector<uint8_t>> static_state_ranks(
156  "state_ranks",
157  1,
158  0
159 );
160 static SizeField<RPG::Enemy, uint8_t> static_size_attribute_ranks(
163  0,
164  0
165 );
166 static TypedField<RPG::Enemy, std::vector<uint8_t>> static_attribute_ranks(
169  "attribute_ranks",
170  1,
171  0
172 );
176  "actions",
177  1,
178  0
179 );
180 
181 
182 template <>
184  &static_name,
185  &static_battler_name,
186  &static_battler_hue,
187  &static_max_hp,
188  &static_max_sp,
189  &static_attack,
190  &static_defense,
191  &static_spirit,
192  &static_agility,
193  &static_transparent,
194  &static_exp,
195  &static_gold,
196  &static_drop_id,
197  &static_drop_prob,
198  &static_critical_hit,
199  &static_critical_hit_chance,
200  &static_miss,
201  &static_levitate,
202  &static_size_state_ranks,
203  &static_state_ranks,
204  &static_size_attribute_ranks,
205  &static_attribute_ranks,
206  &static_actions,
207  NULL
208 };
209 
210 template class Struct<RPG::Enemy>;
bool transparent
Definition: rpg_enemy.h:37
int32_t max_sp
Definition: rpg_enemy.h:32
int32_t exp
Definition: rpg_enemy.h:38
int32_t drop_prob
Definition: rpg_enemy.h:41
int32_t attack
Definition: rpg_enemy.h:33
bool miss
Definition: rpg_enemy.h:44
int32_t agility
Definition: rpg_enemy.h:36
bool levitate
Definition: rpg_enemy.h:45
std::string name
Definition: rpg_enemy.h:28
std::vector< uint8_t > state_ranks
Definition: rpg_enemy.h:46
std::vector< uint8_t > attribute_ranks
Definition: rpg_enemy.h:47
std::vector< EnemyAction > actions
Definition: rpg_enemy.h:48
int32_t critical_hit_chance
Definition: rpg_enemy.h:43
int32_t drop_id
Definition: rpg_enemy.h:40
int32_t gold
Definition: rpg_enemy.h:39
int32_t max_hp
Definition: rpg_enemy.h:31
int32_t defense
Definition: rpg_enemy.h:34
std::string battler_name
Definition: rpg_enemy.h:29
int32_t battler_hue
Definition: rpg_enemy.h:30
bool critical_hit
Definition: rpg_enemy.h:42
int32_t spirit
Definition: rpg_enemy.h:35