liblcf
ldb_class.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 
17 namespace lcf {
18 
19 // Read Class.
20 
21 template <>
22 char const* const Struct<rpg::Class>::name = "Class";
23 static TypedField<rpg::Class, DBString> static_name(
24  &rpg::Class::name,
25  LDB_Reader::ChunkClass::name,
26  "name",
27  0,
28  0
29 );
30 static TypedField<rpg::Class, bool> static_two_weapon(
31  &rpg::Class::two_weapon,
32  LDB_Reader::ChunkClass::two_weapon,
33  "two_weapon",
34  0,
35  0
36 );
37 static TypedField<rpg::Class, bool> static_lock_equipment(
38  &rpg::Class::lock_equipment,
39  LDB_Reader::ChunkClass::lock_equipment,
40  "lock_equipment",
41  0,
42  0
43 );
44 static TypedField<rpg::Class, bool> static_auto_battle(
45  &rpg::Class::auto_battle,
46  LDB_Reader::ChunkClass::auto_battle,
47  "auto_battle",
48  0,
49  0
50 );
51 static TypedField<rpg::Class, bool> static_super_guard(
52  &rpg::Class::super_guard,
53  LDB_Reader::ChunkClass::super_guard,
54  "super_guard",
55  0,
56  0
57 );
58 static TypedField<rpg::Class, rpg::Parameters> static_parameters(
59  &rpg::Class::parameters,
60  LDB_Reader::ChunkClass::parameters,
61  "parameters",
62  0,
63  0
64 );
65 static TypedField<rpg::Class, int32_t> static_exp_base(
66  &rpg::Class::exp_base,
67  LDB_Reader::ChunkClass::exp_base,
68  "exp_base",
69  0,
70  0
71 );
72 static TypedField<rpg::Class, int32_t> static_exp_inflation(
73  &rpg::Class::exp_inflation,
74  LDB_Reader::ChunkClass::exp_inflation,
75  "exp_inflation",
76  0,
77  0
78 );
79 static TypedField<rpg::Class, int32_t> static_exp_correction(
80  &rpg::Class::exp_correction,
81  LDB_Reader::ChunkClass::exp_correction,
82  "exp_correction",
83  0,
84  0
85 );
86 static TypedField<rpg::Class, int32_t> static_battler_animation(
87  &rpg::Class::battler_animation,
88  LDB_Reader::ChunkClass::battler_animation,
89  "battler_animation",
90  0,
91  0
92 );
94  &rpg::Class::skills,
95  LDB_Reader::ChunkClass::skills,
96  "skills",
97  1,
98  0
99 );
100 static SizeField<rpg::Class, std::vector<uint8_t>> static_size_state_ranks(
101  &rpg::Class::state_ranks,
102  LDB_Reader::ChunkClass::state_ranks_size,
103  0,
104  0
105 );
106 static TypedField<rpg::Class, std::vector<uint8_t>> static_state_ranks(
107  &rpg::Class::state_ranks,
108  LDB_Reader::ChunkClass::state_ranks,
109  "state_ranks",
110  1,
111  0
112 );
113 static SizeField<rpg::Class, std::vector<uint8_t>> static_size_attribute_ranks(
114  &rpg::Class::attribute_ranks,
115  LDB_Reader::ChunkClass::attribute_ranks_size,
116  0,
117  0
118 );
119 static TypedField<rpg::Class, std::vector<uint8_t>> static_attribute_ranks(
120  &rpg::Class::attribute_ranks,
121  LDB_Reader::ChunkClass::attribute_ranks,
122  "attribute_ranks",
123  1,
124  0
125 );
126 static TypedField<rpg::Class, std::vector<int32_t>> static_battle_commands(
127  &rpg::Class::battle_commands,
128  LDB_Reader::ChunkClass::battle_commands,
129  "battle_commands",
130  1,
131  0
132 );
133 
134 
135 template <>
137  &static_name,
138  &static_two_weapon,
139  &static_lock_equipment,
140  &static_auto_battle,
141  &static_super_guard,
142  &static_parameters,
143  &static_exp_base,
144  &static_exp_inflation,
145  &static_exp_correction,
146  &static_battler_animation,
147  &static_skills,
148  &static_size_state_ranks,
149  &static_state_ranks,
150  &static_size_attribute_ranks,
151  &static_attribute_ranks,
152  &static_battle_commands,
153  NULL
154 };
155 
156 template class Struct<rpg::Class>;
157 
158 } //namespace lcf
Definition: dbarray.cpp:13