liblcf
ldb_attribute.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 Attribute.
20 
21 template <>
22 char const* const Struct<rpg::Attribute>::name = "Attribute";
23 static TypedField<rpg::Attribute, DBString> static_name(
24  &rpg::Attribute::name,
25  LDB_Reader::ChunkAttribute::name,
26  "name",
27  0,
28  0
29 );
30 static TypedField<rpg::Attribute, int32_t> static_type(
31  &rpg::Attribute::type,
32  LDB_Reader::ChunkAttribute::type,
33  "type",
34  1,
35  0
36 );
37 static TypedField<rpg::Attribute, int32_t> static_a_rate(
38  &rpg::Attribute::a_rate,
39  LDB_Reader::ChunkAttribute::a_rate,
40  "a_rate",
41  0,
42  0
43 );
44 static TypedField<rpg::Attribute, int32_t> static_b_rate(
45  &rpg::Attribute::b_rate,
46  LDB_Reader::ChunkAttribute::b_rate,
47  "b_rate",
48  0,
49  0
50 );
51 static TypedField<rpg::Attribute, int32_t> static_c_rate(
52  &rpg::Attribute::c_rate,
53  LDB_Reader::ChunkAttribute::c_rate,
54  "c_rate",
55  0,
56  0
57 );
58 static TypedField<rpg::Attribute, int32_t> static_d_rate(
59  &rpg::Attribute::d_rate,
60  LDB_Reader::ChunkAttribute::d_rate,
61  "d_rate",
62  0,
63  0
64 );
65 static TypedField<rpg::Attribute, int32_t> static_e_rate(
66  &rpg::Attribute::e_rate,
67  LDB_Reader::ChunkAttribute::e_rate,
68  "e_rate",
69  0,
70  0
71 );
72 
73 
74 template <>
76  &static_name,
77  &static_type,
78  &static_a_rate,
79  &static_b_rate,
80  &static_c_rate,
81  &static_d_rate,
82  &static_e_rate,
83  NULL
84 };
85 
86 template class Struct<rpg::Attribute>;
87 
88 } //namespace lcf
Definition: dbarray.cpp:13