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) 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
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);
189
190
191template <>
193 &static_name,
194 &static_battler_name,
195 &static_battler_hue,
196 &static_max_hp,
197 &static_max_sp,
198 &static_attack,
199 &static_defense,
200 &static_spirit,
201 &static_agility,
202 &static_transparent,
203 &static_exp,
204 &static_gold,
205 &static_drop_id,
206 &static_drop_prob,
207 &static_critical_hit,
208 &static_critical_hit_chance,
209 &static_miss,
210 &static_levitate,
211 &static_size_state_ranks,
212 &static_state_ranks,
213 &static_size_attribute_ranks,
214 &static_attribute_ranks,
215 &static_actions,
216 &static_maniac_unarmed_animation,
217 NULL
218};
219
220template class Struct<rpg::Enemy>;
221
222} //namespace lcf
Definition: dbarray.cpp:13