liblcf
ldb_actor.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 
17 namespace lcf {
18 
19 // Read Actor.
20 
21 template <>
22 char const* const Struct<rpg::Actor>::name = "Actor";
23 static TypedField<rpg::Actor, DBString> static_name(
24  &rpg::Actor::name,
25  LDB_Reader::ChunkActor::name,
26  "name",
27  0,
28  0
29 );
30 static TypedField<rpg::Actor, DBString> static_title(
31  &rpg::Actor::title,
32  LDB_Reader::ChunkActor::title,
33  "title",
34  0,
35  0
36 );
37 static TypedField<rpg::Actor, DBString> static_character_name(
38  &rpg::Actor::character_name,
39  LDB_Reader::ChunkActor::character_name,
40  "character_name",
41  0,
42  0
43 );
44 static TypedField<rpg::Actor, int32_t> static_character_index(
45  &rpg::Actor::character_index,
46  LDB_Reader::ChunkActor::character_index,
47  "character_index",
48  0,
49  0
50 );
51 static TypedField<rpg::Actor, bool> static_transparent(
52  &rpg::Actor::transparent,
53  LDB_Reader::ChunkActor::transparent,
54  "transparent",
55  0,
56  0
57 );
58 static TypedField<rpg::Actor, int32_t> static_initial_level(
59  &rpg::Actor::initial_level,
60  LDB_Reader::ChunkActor::initial_level,
61  "initial_level",
62  0,
63  0
64 );
65 static TypedField<rpg::Actor, int32_t> static_final_level(
66  &rpg::Actor::final_level,
67  LDB_Reader::ChunkActor::final_level,
68  "final_level",
69  0,
70  0
71 );
72 static TypedField<rpg::Actor, bool> static_critical_hit(
73  &rpg::Actor::critical_hit,
74  LDB_Reader::ChunkActor::critical_hit,
75  "critical_hit",
76  0,
77  0
78 );
79 static TypedField<rpg::Actor, int32_t> static_critical_hit_chance(
80  &rpg::Actor::critical_hit_chance,
81  LDB_Reader::ChunkActor::critical_hit_chance,
82  "critical_hit_chance",
83  0,
84  0
85 );
86 static TypedField<rpg::Actor, DBString> static_face_name(
87  &rpg::Actor::face_name,
88  LDB_Reader::ChunkActor::face_name,
89  "face_name",
90  0,
91  0
92 );
93 static TypedField<rpg::Actor, int32_t> static_face_index(
94  &rpg::Actor::face_index,
95  LDB_Reader::ChunkActor::face_index,
96  "face_index",
97  0,
98  0
99 );
100 static TypedField<rpg::Actor, bool> static_two_weapon(
101  &rpg::Actor::two_weapon,
102  LDB_Reader::ChunkActor::two_weapon,
103  "two_weapon",
104  0,
105  0
106 );
107 static TypedField<rpg::Actor, bool> static_lock_equipment(
108  &rpg::Actor::lock_equipment,
109  LDB_Reader::ChunkActor::lock_equipment,
110  "lock_equipment",
111  0,
112  0
113 );
114 static TypedField<rpg::Actor, bool> static_auto_battle(
115  &rpg::Actor::auto_battle,
116  LDB_Reader::ChunkActor::auto_battle,
117  "auto_battle",
118  0,
119  0
120 );
121 static TypedField<rpg::Actor, bool> static_super_guard(
122  &rpg::Actor::super_guard,
123  LDB_Reader::ChunkActor::super_guard,
124  "super_guard",
125  0,
126  0
127 );
128 static TypedField<rpg::Actor, rpg::Parameters> static_parameters(
129  &rpg::Actor::parameters,
130  LDB_Reader::ChunkActor::parameters,
131  "parameters",
132  1,
133  0
134 );
135 static TypedField<rpg::Actor, int32_t> static_exp_base(
136  &rpg::Actor::exp_base,
137  LDB_Reader::ChunkActor::exp_base,
138  "exp_base",
139  0,
140  0
141 );
142 static TypedField<rpg::Actor, int32_t> static_exp_inflation(
143  &rpg::Actor::exp_inflation,
144  LDB_Reader::ChunkActor::exp_inflation,
145  "exp_inflation",
146  0,
147  0
148 );
149 static TypedField<rpg::Actor, int32_t> static_exp_correction(
150  &rpg::Actor::exp_correction,
151  LDB_Reader::ChunkActor::exp_correction,
152  "exp_correction",
153  0,
154  0
155 );
156 static TypedField<rpg::Actor, rpg::Equipment> static_initial_equipment(
157  &rpg::Actor::initial_equipment,
158  LDB_Reader::ChunkActor::initial_equipment,
159  "initial_equipment",
160  1,
161  0
162 );
163 static TypedField<rpg::Actor, int32_t> static_unarmed_animation(
164  &rpg::Actor::unarmed_animation,
165  LDB_Reader::ChunkActor::unarmed_animation,
166  "unarmed_animation",
167  0,
168  0
169 );
170 static TypedField<rpg::Actor, int32_t> static_class_id(
171  &rpg::Actor::class_id,
172  LDB_Reader::ChunkActor::class_id,
173  "class_id",
174  0,
175  1
176 );
177 static TypedField<rpg::Actor, int32_t> static_battle_x(
178  &rpg::Actor::battle_x,
179  LDB_Reader::ChunkActor::battle_x,
180  "battle_x",
181  0,
182  1
183 );
184 static TypedField<rpg::Actor, int32_t> static_battle_y(
185  &rpg::Actor::battle_y,
186  LDB_Reader::ChunkActor::battle_y,
187  "battle_y",
188  0,
189  1
190 );
191 static TypedField<rpg::Actor, int32_t> static_battler_animation(
192  &rpg::Actor::battler_animation,
193  LDB_Reader::ChunkActor::battler_animation,
194  "battler_animation",
195  0,
196  1
197 );
199  &rpg::Actor::skills,
200  LDB_Reader::ChunkActor::skills,
201  "skills",
202  1,
203  0
204 );
205 static TypedField<rpg::Actor, bool> static_rename_skill(
206  &rpg::Actor::rename_skill,
207  LDB_Reader::ChunkActor::rename_skill,
208  "rename_skill",
209  0,
210  0
211 );
212 static TypedField<rpg::Actor, DBString> static_skill_name(
213  &rpg::Actor::skill_name,
214  LDB_Reader::ChunkActor::skill_name,
215  "skill_name",
216  0,
217  0
218 );
219 static SizeField<rpg::Actor, std::vector<uint8_t>> static_size_state_ranks(
220  &rpg::Actor::state_ranks,
221  LDB_Reader::ChunkActor::state_ranks_size,
222  0,
223  0
224 );
225 static TypedField<rpg::Actor, std::vector<uint8_t>> static_state_ranks(
226  &rpg::Actor::state_ranks,
227  LDB_Reader::ChunkActor::state_ranks,
228  "state_ranks",
229  1,
230  0
231 );
232 static SizeField<rpg::Actor, std::vector<uint8_t>> static_size_attribute_ranks(
233  &rpg::Actor::attribute_ranks,
234  LDB_Reader::ChunkActor::attribute_ranks_size,
235  0,
236  0
237 );
238 static TypedField<rpg::Actor, std::vector<uint8_t>> static_attribute_ranks(
239  &rpg::Actor::attribute_ranks,
240  LDB_Reader::ChunkActor::attribute_ranks,
241  "attribute_ranks",
242  1,
243  0
244 );
245 static TypedField<rpg::Actor, std::vector<int32_t>> static_battle_commands(
246  &rpg::Actor::battle_commands,
247  LDB_Reader::ChunkActor::battle_commands,
248  "battle_commands",
249  1,
250  1
251 );
252 static TypedField<rpg::Actor, int32_t> static_easyrpg_actorai(
253  &rpg::Actor::easyrpg_actorai,
254  LDB_Reader::ChunkActor::easyrpg_actorai,
255  "easyrpg_actorai",
256  0,
257  0
258 );
259 static TypedField<rpg::Actor, bool> static_easyrpg_prevent_critical(
260  &rpg::Actor::easyrpg_prevent_critical,
261  LDB_Reader::ChunkActor::easyrpg_prevent_critical,
262  "easyrpg_prevent_critical",
263  0,
264  0
265 );
266 static TypedField<rpg::Actor, bool> static_easyrpg_raise_evasion(
267  &rpg::Actor::easyrpg_raise_evasion,
268  LDB_Reader::ChunkActor::easyrpg_raise_evasion,
269  "easyrpg_raise_evasion",
270  0,
271  0
272 );
273 static TypedField<rpg::Actor, bool> static_easyrpg_immune_to_attribute_downshifts(
274  &rpg::Actor::easyrpg_immune_to_attribute_downshifts,
275  LDB_Reader::ChunkActor::easyrpg_immune_to_attribute_downshifts,
276  "easyrpg_immune_to_attribute_downshifts",
277  0,
278  0
279 );
280 static TypedField<rpg::Actor, bool> static_easyrpg_ignore_evasion(
281  &rpg::Actor::easyrpg_ignore_evasion,
282  LDB_Reader::ChunkActor::easyrpg_ignore_evasion,
283  "easyrpg_ignore_evasion",
284  0,
285  0
286 );
287 static TypedField<rpg::Actor, int32_t> static_easyrpg_unarmed_hit(
288  &rpg::Actor::easyrpg_unarmed_hit,
289  LDB_Reader::ChunkActor::easyrpg_unarmed_hit,
290  "easyrpg_unarmed_hit",
291  0,
292  0
293 );
294 static SizeField<rpg::Actor, DBBitArray> static_size_easyrpg_unarmed_state_set(
295  &rpg::Actor::easyrpg_unarmed_state_set,
296  LDB_Reader::ChunkActor::easyrpg_unarmed_state_set_size,
297  0,
298  0
299 );
300 static TypedField<rpg::Actor, DBBitArray> static_easyrpg_unarmed_state_set(
301  &rpg::Actor::easyrpg_unarmed_state_set,
302  LDB_Reader::ChunkActor::easyrpg_unarmed_state_set,
303  "easyrpg_unarmed_state_set",
304  1,
305  0
306 );
307 static TypedField<rpg::Actor, int32_t> static_easyrpg_unarmed_state_chance(
308  &rpg::Actor::easyrpg_unarmed_state_chance,
309  LDB_Reader::ChunkActor::easyrpg_unarmed_state_chance,
310  "easyrpg_unarmed_state_chance",
311  0,
312  0
313 );
314 static SizeField<rpg::Actor, DBBitArray> static_size_easyrpg_unarmed_attribute_set(
315  &rpg::Actor::easyrpg_unarmed_attribute_set,
316  LDB_Reader::ChunkActor::easyrpg_unarmed_attribute_set_size,
317  0,
318  0
319 );
320 static TypedField<rpg::Actor, DBBitArray> static_easyrpg_unarmed_attribute_set(
321  &rpg::Actor::easyrpg_unarmed_attribute_set,
322  LDB_Reader::ChunkActor::easyrpg_unarmed_attribute_set,
323  "easyrpg_unarmed_attribute_set",
324  1,
325  0
326 );
327 static TypedField<rpg::Actor, bool> static_easyrpg_dual_attack(
328  &rpg::Actor::easyrpg_dual_attack,
329  LDB_Reader::ChunkActor::easyrpg_dual_attack,
330  "easyrpg_dual_attack",
331  0,
332  0
333 );
334 static TypedField<rpg::Actor, bool> static_easyrpg_attack_all(
335  &rpg::Actor::easyrpg_attack_all,
336  LDB_Reader::ChunkActor::easyrpg_attack_all,
337  "easyrpg_attack_all",
338  0,
339  0
340 );
341 
342 
343 template <>
345  &static_name,
346  &static_title,
347  &static_character_name,
348  &static_character_index,
349  &static_transparent,
350  &static_initial_level,
351  &static_final_level,
352  &static_critical_hit,
353  &static_critical_hit_chance,
354  &static_face_name,
355  &static_face_index,
356  &static_two_weapon,
357  &static_lock_equipment,
358  &static_auto_battle,
359  &static_super_guard,
360  &static_parameters,
361  &static_exp_base,
362  &static_exp_inflation,
363  &static_exp_correction,
364  &static_initial_equipment,
365  &static_unarmed_animation,
366  &static_class_id,
367  &static_battle_x,
368  &static_battle_y,
369  &static_battler_animation,
370  &static_skills,
371  &static_rename_skill,
372  &static_skill_name,
373  &static_size_state_ranks,
374  &static_state_ranks,
375  &static_size_attribute_ranks,
376  &static_attribute_ranks,
377  &static_battle_commands,
378  &static_easyrpg_actorai,
379  &static_easyrpg_prevent_critical,
380  &static_easyrpg_raise_evasion,
381  &static_easyrpg_immune_to_attribute_downshifts,
382  &static_easyrpg_ignore_evasion,
383  &static_easyrpg_unarmed_hit,
384  &static_size_easyrpg_unarmed_state_set,
385  &static_easyrpg_unarmed_state_set,
386  &static_easyrpg_unarmed_state_chance,
387  &static_size_easyrpg_unarmed_attribute_set,
388  &static_easyrpg_unarmed_attribute_set,
389  &static_easyrpg_dual_attack,
390  &static_easyrpg_attack_all,
391  NULL
392 };
393 
394 template class Struct<rpg::Actor>;
395 
396 } //namespace lcf
Definition: dbarray.cpp:13