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/lsd/reader.h"
14 #include "lcf/lsd/chunks.h"
15 #include "reader_struct_impl.h"
16 
17 namespace lcf {
18 
19 // Read SaveInventory.
20 
21 template <>
22 char const* const Struct<rpg::SaveInventory>::name = "SaveInventory";
23 static CountField<rpg::SaveInventory, std::vector<int16_t>> static_size_party(
24 	&rpg::SaveInventory::party,
25 	LSD_Reader::ChunkSaveInventory::party_size,
26 	1,
27 	0
28 );
29 static TypedField<rpg::SaveInventory, std::vector<int16_t>> static_party(
30 	&rpg::SaveInventory::party,
31 	LSD_Reader::ChunkSaveInventory::party,
32 	"party",
33 	1,
34 	0
35 );
36 static CountField<rpg::SaveInventory, std::vector<int16_t>> static_size_item_ids(
37 	&rpg::SaveInventory::item_ids,
38 	LSD_Reader::ChunkSaveInventory::item_ids_size,
39 	1,
40 	0
41 );
42 static TypedField<rpg::SaveInventory, std::vector<int16_t>> static_item_ids(
43 	&rpg::SaveInventory::item_ids,
44 	LSD_Reader::ChunkSaveInventory::item_ids,
45 	"item_ids",
46 	1,
47 	0
48 );
49 static TypedField<rpg::SaveInventory, std::vector<uint8_t>> static_item_counts(
50 	&rpg::SaveInventory::item_counts,
51 	LSD_Reader::ChunkSaveInventory::item_counts,
52 	"item_counts",
53 	1,
54 	0
55 );
56 static TypedField<rpg::SaveInventory, std::vector<uint8_t>> static_item_usage(
57 	&rpg::SaveInventory::item_usage,
58 	LSD_Reader::ChunkSaveInventory::item_usage,
59 	"item_usage",
60 	1,
61 	0
62 );
63 static TypedField<rpg::SaveInventory, int32_t> static_gold(
64 	&rpg::SaveInventory::gold,
65 	LSD_Reader::ChunkSaveInventory::gold,
66 	"gold",
67 	0,
68 	0
69 );
70 static TypedField<rpg::SaveInventory, int32_t> static_timer1_frames(
71 	&rpg::SaveInventory::timer1_frames,
72 	LSD_Reader::ChunkSaveInventory::timer1_frames,
73 	"timer1_frames",
74 	0,
75 	0
76 );
77 static TypedField<rpg::SaveInventory, bool> static_timer1_active(
78 	&rpg::SaveInventory::timer1_active,
79 	LSD_Reader::ChunkSaveInventory::timer1_active,
80 	"timer1_active",
81 	0,
82 	0
83 );
84 static TypedField<rpg::SaveInventory, bool> static_timer1_visible(
85 	&rpg::SaveInventory::timer1_visible,
86 	LSD_Reader::ChunkSaveInventory::timer1_visible,
87 	"timer1_visible",
88 	0,
89 	0
90 );
91 static TypedField<rpg::SaveInventory, bool> static_timer1_battle(
92 	&rpg::SaveInventory::timer1_battle,
93 	LSD_Reader::ChunkSaveInventory::timer1_battle,
94 	"timer1_battle",
95 	0,
96 	0
97 );
98 static TypedField<rpg::SaveInventory, int32_t> static_timer2_frames(
99 	&rpg::SaveInventory::timer2_frames,
100 	LSD_Reader::ChunkSaveInventory::timer2_frames,
101 	"timer2_frames",
102 	0,
103 	0
104 );
105 static TypedField<rpg::SaveInventory, bool> static_timer2_active(
106 	&rpg::SaveInventory::timer2_active,
107 	LSD_Reader::ChunkSaveInventory::timer2_active,
108 	"timer2_active",
109 	0,
110 	0
111 );
112 static TypedField<rpg::SaveInventory, bool> static_timer2_visible(
113 	&rpg::SaveInventory::timer2_visible,
114 	LSD_Reader::ChunkSaveInventory::timer2_visible,
115 	"timer2_visible",
116 	0,
117 	0
118 );
119 static TypedField<rpg::SaveInventory, bool> static_timer2_battle(
120 	&rpg::SaveInventory::timer2_battle,
121 	LSD_Reader::ChunkSaveInventory::timer2_battle,
122 	"timer2_battle",
123 	0,
124 	0
125 );
126 static TypedField<rpg::SaveInventory, int32_t> static_battles(
127 	&rpg::SaveInventory::battles,
128 	LSD_Reader::ChunkSaveInventory::battles,
129 	"battles",
130 	0,
131 	0
132 );
133 static TypedField<rpg::SaveInventory, int32_t> static_defeats(
134 	&rpg::SaveInventory::defeats,
135 	LSD_Reader::ChunkSaveInventory::defeats,
136 	"defeats",
137 	0,
138 	0
139 );
140 static TypedField<rpg::SaveInventory, int32_t> static_escapes(
141 	&rpg::SaveInventory::escapes,
142 	LSD_Reader::ChunkSaveInventory::escapes,
143 	"escapes",
144 	0,
145 	0
146 );
147 static TypedField<rpg::SaveInventory, int32_t> static_victories(
148 	&rpg::SaveInventory::victories,
149 	LSD_Reader::ChunkSaveInventory::victories,
150 	"victories",
151 	0,
152 	0
153 );
154 static TypedField<rpg::SaveInventory, int32_t> static_turns(
155 	&rpg::SaveInventory::turns,
156 	LSD_Reader::ChunkSaveInventory::turns,
157 	"turns",
158 	0,
159 	0
160 );
161 static TypedField<rpg::SaveInventory, int32_t> static_steps(
162 	&rpg::SaveInventory::steps,
163 	LSD_Reader::ChunkSaveInventory::steps,
164 	"steps",
165 	0,
166 	0
167 );
168 
169 
170 template <>
171 Field<rpg::SaveInventory> const* Struct<rpg::SaveInventory>::fields[] = {
172 	&static_size_party,
173 	&static_party,
174 	&static_size_item_ids,
175 	&static_item_ids,
176 	&static_item_counts,
177 	&static_item_usage,
178 	&static_gold,
179 	&static_timer1_frames,
180 	&static_timer1_active,
181 	&static_timer1_visible,
182 	&static_timer1_battle,
183 	&static_timer2_frames,
184 	&static_timer2_active,
185 	&static_timer2_visible,
186 	&static_timer2_battle,
187 	&static_battles,
188 	&static_defeats,
189 	&static_escapes,
190 	&static_victories,
191 	&static_turns,
192 	&static_steps,
193 	NULL
194 };
195 
196 template class Struct<rpg::SaveInventory>;
197 
198 } //namespace lcf
199