liblcf
Loading...
Searching...
No Matches
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) 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 Enemy.
20
21template <>
22char const* const Struct<rpg::Enemy>::name = "Enemy";
23static TypedField<rpg::Enemy, DBString> static_name(
24 &rpg::Enemy::name,
25 LDB_Reader::ChunkEnemy::name,
26 "name",
27 0,
28 0
29);
30static TypedField<rpg::Enemy, DBString> static_battler_name(
31 &rpg::Enemy::battler_name,
32 LDB_Reader::ChunkEnemy::battler_name,
33 "battler_name",
34 0,
35 0
36);
37static TypedField<rpg::Enemy, int32_t> static_battler_hue(
38 &rpg::Enemy::battler_hue,
39 LDB_Reader::ChunkEnemy::battler_hue,
40 "battler_hue",
41 0,
42 0
43);
44static TypedField<rpg::Enemy, int32_t> static_max_hp(
45 &rpg::Enemy::max_hp,
46 LDB_Reader::ChunkEnemy::max_hp,
47 "max_hp",
48 0,
49 0
50);
51static TypedField<rpg::Enemy, int32_t> static_max_sp(
52 &rpg::Enemy::max_sp,
53 LDB_Reader::ChunkEnemy::max_sp,
54 "max_sp",
55 0,
56 0
57);
58static TypedField<rpg::Enemy, int32_t> static_attack(
59 &rpg::Enemy::attack,
60 LDB_Reader::ChunkEnemy::attack,
61 "attack",
62 0,
63 0
64);
65static TypedField<rpg::Enemy, int32_t> static_defense(
66 &rpg::Enemy::defense,
67 LDB_Reader::ChunkEnemy::defense,
68 "defense",
69 0,
70 0
71);
72static TypedField<rpg::Enemy, int32_t> static_spirit(
73 &rpg::Enemy::spirit,
74 LDB_Reader::ChunkEnemy::spirit,
75 "spirit",
76 0,
77 0
78);
79static TypedField<rpg::Enemy, int32_t> static_agility(
80 &rpg::Enemy::agility,
81 LDB_Reader::ChunkEnemy::agility,
82 "agility",
83 0,
84 0
85);
86static TypedField<rpg::Enemy, bool> static_transparent(
87 &rpg::Enemy::transparent,
88 LDB_Reader::ChunkEnemy::transparent,
89 "transparent",
90 0,
91 0
92);
93static TypedField<rpg::Enemy, int32_t> static_exp(
94 &rpg::Enemy::exp,
95 LDB_Reader::ChunkEnemy::exp,
96 "exp",
97 0,
98 0
99);
100static TypedField<rpg::Enemy, int32_t> static_gold(
101 &rpg::Enemy::gold,
102 LDB_Reader::ChunkEnemy::gold,
103 "gold",
104 0,
105 0
106);
107static TypedField<rpg::Enemy, int32_t> static_drop_id(
108 &rpg::Enemy::drop_id,
109 LDB_Reader::ChunkEnemy::drop_id,
110 "drop_id",
111 0,
112 0
113);
114static TypedField<rpg::Enemy, int32_t> static_drop_prob(
115 &rpg::Enemy::drop_prob,
116 LDB_Reader::ChunkEnemy::drop_prob,
117 "drop_prob",
118 0,
119 0
120);
121static TypedField<rpg::Enemy, bool> static_critical_hit(
122 &rpg::Enemy::critical_hit,
123 LDB_Reader::ChunkEnemy::critical_hit,
124 "critical_hit",
125 0,
126 0
127);
128static TypedField<rpg::Enemy, int32_t> static_critical_hit_chance(
129 &rpg::Enemy::critical_hit_chance,
130 LDB_Reader::ChunkEnemy::critical_hit_chance,
131 "critical_hit_chance",
132 0,
133 0
134);
135static TypedField<rpg::Enemy, bool> static_miss(
136 &rpg::Enemy::miss,
137 LDB_Reader::ChunkEnemy::miss,
138 "miss",
139 0,
140 0
141);
142static TypedField<rpg::Enemy, bool> static_levitate(
143 &rpg::Enemy::levitate,
144 LDB_Reader::ChunkEnemy::levitate,
145 "levitate",
146 0,
147 0
148);
149static SizeField<rpg::Enemy, std::vector<uint8_t>> static_size_state_ranks(
150 &rpg::Enemy::state_ranks,
151 LDB_Reader::ChunkEnemy::state_ranks_size,
152 0,
153 0
154);
155static TypedField<rpg::Enemy, std::vector<uint8_t>> static_state_ranks(
156 &rpg::Enemy::state_ranks,
157 LDB_Reader::ChunkEnemy::state_ranks,
158 "state_ranks",
159 1,
160 0
161);
162static SizeField<rpg::Enemy, std::vector<uint8_t>> static_size_attribute_ranks(
163 &rpg::Enemy::attribute_ranks,
164 LDB_Reader::ChunkEnemy::attribute_ranks_size,
165 0,
166 0
167);
168static TypedField<rpg::Enemy, std::vector<uint8_t>> static_attribute_ranks(
169 &rpg::Enemy::attribute_ranks,
170 LDB_Reader::ChunkEnemy::attribute_ranks,
171 "attribute_ranks",
172 1,
173 0
174);
176 &rpg::Enemy::actions,
177 LDB_Reader::ChunkEnemy::actions,
178 "actions",
179 1,
180 0
181);
182static TypedField<rpg::Enemy, int32_t> static_maniac_unarmed_animation(
183 &rpg::Enemy::maniac_unarmed_animation,
184 LDB_Reader::ChunkEnemy::maniac_unarmed_animation,
185 "maniac_unarmed_animation",
186 0,
187 0
188);
189static TypedField<rpg::Enemy, int32_t> static_easyrpg_enemyai(
190 &rpg::Enemy::easyrpg_enemyai,
191 LDB_Reader::ChunkEnemy::easyrpg_enemyai,
192 "easyrpg_enemyai",
193 0,
194 0
195);
196static TypedField<rpg::Enemy, bool> static_easyrpg_prevent_critical(
197 &rpg::Enemy::easyrpg_prevent_critical,
198 LDB_Reader::ChunkEnemy::easyrpg_prevent_critical,
199 "easyrpg_prevent_critical",
200 0,
201 0
202);
203static TypedField<rpg::Enemy, bool> static_easyrpg_raise_evasion(
204 &rpg::Enemy::easyrpg_raise_evasion,
205 LDB_Reader::ChunkEnemy::easyrpg_raise_evasion,
206 "easyrpg_raise_evasion",
207 0,
208 0
209);
210static TypedField<rpg::Enemy, bool> static_easyrpg_immune_to_attribute_downshifts(
211 &rpg::Enemy::easyrpg_immune_to_attribute_downshifts,
212 LDB_Reader::ChunkEnemy::easyrpg_immune_to_attribute_downshifts,
213 "easyrpg_immune_to_attribute_downshifts",
214 0,
215 0
216);
217static TypedField<rpg::Enemy, bool> static_easyrpg_ignore_evasion(
218 &rpg::Enemy::easyrpg_ignore_evasion,
219 LDB_Reader::ChunkEnemy::easyrpg_ignore_evasion,
220 "easyrpg_ignore_evasion",
221 0,
222 0
223);
224static TypedField<rpg::Enemy, int32_t> static_easyrpg_hit(
225 &rpg::Enemy::easyrpg_hit,
226 LDB_Reader::ChunkEnemy::easyrpg_hit,
227 "easyrpg_hit",
228 0,
229 0
230);
231static SizeField<rpg::Enemy, DBBitArray> static_size_easyrpg_state_set(
232 &rpg::Enemy::easyrpg_state_set,
233 LDB_Reader::ChunkEnemy::easyrpg_state_set_size,
234 0,
235 0
236);
237static TypedField<rpg::Enemy, DBBitArray> static_easyrpg_state_set(
238 &rpg::Enemy::easyrpg_state_set,
239 LDB_Reader::ChunkEnemy::easyrpg_state_set,
240 "easyrpg_state_set",
241 0,
242 0
243);
244static TypedField<rpg::Enemy, int32_t> static_easyrpg_state_chance(
245 &rpg::Enemy::easyrpg_state_chance,
246 LDB_Reader::ChunkEnemy::easyrpg_state_chance,
247 "easyrpg_state_chance",
248 0,
249 0
250);
251static SizeField<rpg::Enemy, DBBitArray> static_size_easyrpg_attribute_set(
252 &rpg::Enemy::easyrpg_attribute_set,
253 LDB_Reader::ChunkEnemy::easyrpg_attribute_set_size,
254 0,
255 0
256);
257static TypedField<rpg::Enemy, DBBitArray> static_easyrpg_attribute_set(
258 &rpg::Enemy::easyrpg_attribute_set,
259 LDB_Reader::ChunkEnemy::easyrpg_attribute_set,
260 "easyrpg_attribute_set",
261 0,
262 0
263);
264static TypedField<rpg::Enemy, bool> static_easyrpg_super_guard(
265 &rpg::Enemy::easyrpg_super_guard,
266 LDB_Reader::ChunkEnemy::easyrpg_super_guard,
267 "easyrpg_super_guard",
268 0,
269 0
270);
271static TypedField<rpg::Enemy, bool> static_easyrpg_attack_all(
272 &rpg::Enemy::easyrpg_attack_all,
273 LDB_Reader::ChunkEnemy::easyrpg_attack_all,
274 "easyrpg_attack_all",
275 0,
276 0
277);
278
279
280template <>
282 &static_name,
283 &static_battler_name,
284 &static_battler_hue,
285 &static_max_hp,
286 &static_max_sp,
287 &static_attack,
288 &static_defense,
289 &static_spirit,
290 &static_agility,
291 &static_transparent,
292 &static_exp,
293 &static_gold,
294 &static_drop_id,
295 &static_drop_prob,
296 &static_critical_hit,
297 &static_critical_hit_chance,
298 &static_miss,
299 &static_levitate,
300 &static_size_state_ranks,
301 &static_state_ranks,
302 &static_size_attribute_ranks,
303 &static_attribute_ranks,
304 &static_actions,
305 &static_maniac_unarmed_animation,
306 &static_easyrpg_enemyai,
307 &static_easyrpg_prevent_critical,
308 &static_easyrpg_raise_evasion,
309 &static_easyrpg_immune_to_attribute_downshifts,
310 &static_easyrpg_ignore_evasion,
311 &static_easyrpg_hit,
312 &static_size_easyrpg_state_set,
313 &static_easyrpg_state_set,
314 &static_easyrpg_state_chance,
315 &static_size_easyrpg_attribute_set,
316 &static_easyrpg_attribute_set,
317 &static_easyrpg_super_guard,
318 &static_easyrpg_attack_all,
319 NULL
320};
321
322template class Struct<rpg::Enemy>;
323
324} //namespace lcf