liblcf
lsd_saveinventory.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) 2020 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 "lsd_reader.h"
14 #include "lsd_chunks.h"
15 #include "reader_struct_impl.h"
16 
17 // Read SaveInventory.
18 
19 template <>
20 char const* const Struct<RPG::SaveInventory>::name = "SaveInventory";
21 static CountField<RPG::SaveInventory, int16_t> static_size_party(
24  1,
25  0
26 );
30  "party",
31  1,
32  0
33 );
34 static CountField<RPG::SaveInventory, int16_t> static_size_item_ids(
37  1,
38  0
39 );
43  "item_ids",
44  1,
45  0
46 );
50  "item_counts",
51  1,
52  0
53 );
57  "item_usage",
58  1,
59  0
60 );
64  "gold",
65  0,
66  0
67 );
68 static TypedField<RPG::SaveInventory, int32_t> static_timer1_frames(
71  "timer1_frames",
72  0,
73  0
74 );
75 static TypedField<RPG::SaveInventory, bool> static_timer1_active(
78  "timer1_active",
79  0,
80  0
81 );
82 static TypedField<RPG::SaveInventory, bool> static_timer1_visible(
85  "timer1_visible",
86  0,
87  0
88 );
89 static TypedField<RPG::SaveInventory, bool> static_timer1_battle(
92  "timer1_battle",
93  0,
94  0
95 );
96 static TypedField<RPG::SaveInventory, int32_t> static_timer2_frames(
99  "timer2_frames",
100  0,
101  0
102 );
103 static TypedField<RPG::SaveInventory, bool> static_timer2_active(
106  "timer2_active",
107  0,
108  0
109 );
110 static TypedField<RPG::SaveInventory, bool> static_timer2_visible(
113  "timer2_visible",
114  0,
115  0
116 );
117 static TypedField<RPG::SaveInventory, bool> static_timer2_battle(
120  "timer2_battle",
121  0,
122  0
123 );
124 static TypedField<RPG::SaveInventory, int32_t> static_battles(
127  "battles",
128  0,
129  0
130 );
131 static TypedField<RPG::SaveInventory, int32_t> static_defeats(
134  "defeats",
135  0,
136  0
137 );
138 static TypedField<RPG::SaveInventory, int32_t> static_escapes(
141  "escapes",
142  0,
143  0
144 );
145 static TypedField<RPG::SaveInventory, int32_t> static_victories(
148  "victories",
149  0,
150  0
151 );
152 static TypedField<RPG::SaveInventory, int32_t> static_turns(
155  "turns",
156  0,
157  0
158 );
159 static TypedField<RPG::SaveInventory, int32_t> static_steps(
162  "steps",
163  0,
164  0
165 );
166 
167 
168 template <>
170  &static_size_party,
171  &static_party,
172  &static_size_item_ids,
173  &static_item_ids,
174  &static_item_counts,
175  &static_item_usage,
176  &static_gold,
177  &static_timer1_frames,
178  &static_timer1_active,
179  &static_timer1_visible,
180  &static_timer1_battle,
181  &static_timer2_frames,
182  &static_timer2_active,
183  &static_timer2_visible,
184  &static_timer2_battle,
185  &static_battles,
186  &static_defeats,
187  &static_escapes,
188  &static_victories,
189  &static_turns,
190  &static_steps,
191  NULL
192 };
193 
194 template class Struct<RPG::SaveInventory>;
std::vector< uint8_t > item_counts
std::vector< uint8_t > item_usage
std::vector< int16_t > party
std::vector< int16_t > item_ids