liblcf
lmu_map.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 "lmu_reader.h"
14 #include "lmu_chunks.h"
15 #include "reader_struct_impl.h"
16 
17 // Read Map.
18 
19 template <>
20 char const* const Struct<RPG::Map>::name = "Map";
21 static TypedField<RPG::Map, int32_t> static_chipset_id(
24  "chipset_id",
25  0,
26  0
27 );
28 static TypedField<RPG::Map, int32_t> static_width(
31  "width",
32  0,
33  0
34 );
35 static TypedField<RPG::Map, int32_t> static_height(
38  "height",
39  0,
40  0
41 );
42 static TypedField<RPG::Map, int32_t> static_scroll_type(
45  "scroll_type",
46  1,
47  0
48 );
49 static TypedField<RPG::Map, bool> static_parallax_flag(
52  "parallax_flag",
53  0,
54  0
55 );
56 static TypedField<RPG::Map, std::string> static_parallax_name(
59  "parallax_name",
60  0,
61  0
62 );
63 static TypedField<RPG::Map, bool> static_parallax_loop_x(
66  "parallax_loop_x",
67  0,
68  0
69 );
70 static TypedField<RPG::Map, bool> static_parallax_loop_y(
73  "parallax_loop_y",
74  0,
75  0
76 );
77 static TypedField<RPG::Map, bool> static_parallax_auto_loop_x(
80  "parallax_auto_loop_x",
81  0,
82  0
83 );
84 static TypedField<RPG::Map, int32_t> static_parallax_sx(
87  "parallax_sx",
88  0,
89  0
90 );
91 static TypedField<RPG::Map, bool> static_parallax_auto_loop_y(
94  "parallax_auto_loop_y",
95  0,
96  0
97 );
98 static TypedField<RPG::Map, int32_t> static_parallax_sy(
101  "parallax_sy",
102  0,
103  0
104 );
105 static TypedField<RPG::Map, bool> static_generator_flag(
108  "generator_flag",
109  0,
110  0
111 );
112 static TypedField<RPG::Map, int32_t> static_generator_mode(
115  "generator_mode",
116  0,
117  0
118 );
119 static TypedField<RPG::Map, bool> static_top_level(
122  "top_level",
123  0,
124  0
125 );
126 static TypedField<RPG::Map, int32_t> static_generator_tiles(
129  "generator_tiles",
130  0,
131  0
132 );
133 static TypedField<RPG::Map, int32_t> static_generator_width(
136  "generator_width",
137  0,
138  0
139 );
140 static TypedField<RPG::Map, int32_t> static_generator_height(
143  "generator_height",
144  0,
145  0
146 );
147 static TypedField<RPG::Map, bool> static_generator_surround(
150  "generator_surround",
151  0,
152  0
153 );
154 static TypedField<RPG::Map, bool> static_generator_upper_wall(
157  "generator_upper_wall",
158  0,
159  0
160 );
161 static TypedField<RPG::Map, bool> static_generator_floor_b(
164  "generator_floor_b",
165  0,
166  0
167 );
168 static TypedField<RPG::Map, bool> static_generator_floor_c(
171  "generator_floor_c",
172  0,
173  0
174 );
175 static TypedField<RPG::Map, bool> static_generator_extra_b(
178  "generator_extra_b",
179  0,
180  0
181 );
182 static TypedField<RPG::Map, bool> static_generator_extra_c(
185  "generator_extra_c",
186  0,
187  0
188 );
189 static TypedField<RPG::Map, std::vector<uint32_t>> static_generator_x(
192  "generator_x",
193  0,
194  0
195 );
196 static TypedField<RPG::Map, std::vector<uint32_t>> static_generator_y(
199  "generator_y",
200  0,
201  0
202 );
203 static TypedField<RPG::Map, std::vector<int16_t>> static_generator_tile_ids(
206  "generator_tile_ids",
207  0,
208  0
209 );
210 static TypedField<RPG::Map, std::vector<int16_t>> static_lower_layer(
213  "lower_layer",
214  1,
215  0
216 );
217 static TypedField<RPG::Map, std::vector<int16_t>> static_upper_layer(
220  "upper_layer",
221  1,
222  0
223 );
227  "events",
228  1,
229  0
230 );
231 static TypedField<RPG::Map, int32_t> static_save_count_2k3e(
234  "save_count_2k3e",
235  0,
236  1
237 );
238 static TypedField<RPG::Map, int32_t> static_save_count(
241  "save_count",
242  0,
243  0
244 );
245 
246 
247 template <>
249  &static_chipset_id,
250  &static_width,
251  &static_height,
252  &static_scroll_type,
253  &static_parallax_flag,
254  &static_parallax_name,
255  &static_parallax_loop_x,
256  &static_parallax_loop_y,
257  &static_parallax_auto_loop_x,
258  &static_parallax_sx,
259  &static_parallax_auto_loop_y,
260  &static_parallax_sy,
261  &static_generator_flag,
262  &static_generator_mode,
263  &static_top_level,
264  &static_generator_tiles,
265  &static_generator_width,
266  &static_generator_height,
267  &static_generator_surround,
268  &static_generator_upper_wall,
269  &static_generator_floor_b,
270  &static_generator_floor_c,
271  &static_generator_extra_b,
272  &static_generator_extra_c,
273  &static_generator_x,
274  &static_generator_y,
275  &static_generator_tile_ids,
276  &static_lower_layer,
277  &static_upper_layer,
278  &static_events,
279  &static_save_count_2k3e,
280  &static_save_count,
281  NULL
282 };
283 
284 template class Struct<RPG::Map>;
RPG::Map::generator_x
std::vector< uint32_t > generator_x
Definition: rpg_map.h:86
lmu_chunks.h
LMU_Reader::ChunkMap::generator_height
@ generator_height
Definition: lmu_chunks.h:140
RPG::Map::generator_floor_c
bool generator_floor_c
Definition: rpg_map.h:83
RPG::Map::events
std::vector< Event > events
Definition: rpg_map.h:91
RPG::Map::generator_mode
int32_t generator_mode
Definition: rpg_map.h:75
LMU_Reader::ChunkMap::width
@ width
Definition: lmu_chunks.h:108
RPG::Map::chipset_id
int32_t chipset_id
Definition: rpg_map.h:62
RPG::Map::parallax_loop_x
bool parallax_loop_x
Definition: rpg_map.h:68
LMU_Reader::ChunkMap::upper_layer
@ upper_layer
Definition: lmu_chunks.h:162
LMU_Reader::ChunkMap::parallax_flag
@ parallax_flag
Definition: lmu_chunks.h:114
RPG::Map::top_level
bool top_level
Definition: rpg_map.h:76
LMU_Reader::ChunkMap::top_level
@ top_level
Definition: lmu_chunks.h:134
RPG::Map::upper_layer
std::vector< int16_t > upper_layer
Definition: rpg_map.h:90
Field
Definition: reader_struct.h:315
RPG::Map::parallax_loop_y
bool parallax_loop_y
Definition: rpg_map.h:69
LMU_Reader::ChunkMap::generator_flag
@ generator_flag
Definition: lmu_chunks.h:130
TypedField
Definition: reader_struct.h:348
LMU_Reader::ChunkMap::generator_extra_c
@ generator_extra_c
Definition: lmu_chunks.h:152
RPG::Map::generator_tiles
int32_t generator_tiles
Definition: rpg_map.h:77
LMU_Reader::ChunkMap::generator_tile_ids
@ generator_tile_ids
Definition: lmu_chunks.h:158
RPG::Map::generator_y
std::vector< uint32_t > generator_y
Definition: rpg_map.h:87
LMU_Reader::ChunkMap::events
@ events
Definition: lmu_chunks.h:164
LMU_Reader::ChunkMap::generator_surround
@ generator_surround
Definition: lmu_chunks.h:142
Struct
Definition: reader_struct.h:43
RPG::Map::parallax_sy
int32_t parallax_sy
Definition: rpg_map.h:73
LMU_Reader::ChunkMap::parallax_name
@ parallax_name
Definition: lmu_chunks.h:116
RPG::Map::parallax_sx
int32_t parallax_sx
Definition: rpg_map.h:71
RPG::Map::generator_height
int32_t generator_height
Definition: rpg_map.h:79
RPG::Map::save_count
int32_t save_count
Definition: rpg_map.h:93
RPG::Map::width
int32_t width
Definition: rpg_map.h:63
LMU_Reader::ChunkMap::save_count_2k3e
@ save_count_2k3e
Definition: lmu_chunks.h:166
RPG::Map::parallax_auto_loop_x
bool parallax_auto_loop_x
Definition: rpg_map.h:70
LMU_Reader::ChunkMap::chipset_id
@ chipset_id
Definition: lmu_chunks.h:106
LMU_Reader::ChunkMap::generator_floor_c
@ generator_floor_c
Definition: lmu_chunks.h:148
LMU_Reader::ChunkMap::parallax_loop_y
@ parallax_loop_y
Definition: lmu_chunks.h:120
RPG::Map::save_count_2k3e
int32_t save_count_2k3e
Definition: rpg_map.h:92
LMU_Reader::ChunkMap::generator_width
@ generator_width
Definition: lmu_chunks.h:138
RPG::Map::generator_upper_wall
bool generator_upper_wall
Definition: rpg_map.h:81
LMU_Reader::ChunkMap::parallax_sy
@ parallax_sy
Definition: lmu_chunks.h:128
LMU_Reader::ChunkMap::parallax_auto_loop_y
@ parallax_auto_loop_y
Definition: lmu_chunks.h:126
LMU_Reader::ChunkMap::save_count
@ save_count
Definition: lmu_chunks.h:168
RPG::Map::scroll_type
int32_t scroll_type
Definition: rpg_map.h:65
RPG::Map::generator_extra_b
bool generator_extra_b
Definition: rpg_map.h:84
LMU_Reader::ChunkMap::parallax_loop_x
@ parallax_loop_x
Definition: lmu_chunks.h:118
RPG::Map::parallax_auto_loop_y
bool parallax_auto_loop_y
Definition: rpg_map.h:72
RPG::Map::generator_width
int32_t generator_width
Definition: rpg_map.h:78
RPG::Map::generator_extra_c
bool generator_extra_c
Definition: rpg_map.h:85
RPG::Map::generator_surround
bool generator_surround
Definition: rpg_map.h:80
RPG::Map::parallax_flag
bool parallax_flag
Definition: rpg_map.h:66
RPG::Map::lower_layer
std::vector< int16_t > lower_layer
Definition: rpg_map.h:89
LMU_Reader::ChunkMap::generator_x
@ generator_x
Definition: lmu_chunks.h:154
LMU_Reader::ChunkMap::parallax_auto_loop_x
@ parallax_auto_loop_x
Definition: lmu_chunks.h:122
LMU_Reader::ChunkMap::generator_floor_b
@ generator_floor_b
Definition: lmu_chunks.h:146
LMU_Reader::ChunkMap::height
@ height
Definition: lmu_chunks.h:110
lmu_reader.h
LMU_Reader::ChunkMap::scroll_type
@ scroll_type
Definition: lmu_chunks.h:112
LMU_Reader::ChunkMap::parallax_sx
@ parallax_sx
Definition: lmu_chunks.h:124
LMU_Reader::ChunkMap::generator_tiles
@ generator_tiles
Definition: lmu_chunks.h:136
reader_struct_impl.h
LMU_Reader::ChunkMap::generator_extra_b
@ generator_extra_b
Definition: lmu_chunks.h:150
LMU_Reader::ChunkMap::generator_y
@ generator_y
Definition: lmu_chunks.h:156
LMU_Reader::ChunkMap::generator_mode
@ generator_mode
Definition: lmu_chunks.h:132
LMU_Reader::ChunkMap::generator_upper_wall
@ generator_upper_wall
Definition: lmu_chunks.h:144
LMU_Reader::ChunkMap::lower_layer
@ lower_layer
Definition: lmu_chunks.h:160
RPG::Map::generator_floor_b
bool generator_floor_b
Definition: rpg_map.h:82
RPG::Map::generator_flag
bool generator_flag
Definition: rpg_map.h:74
RPG::Map::parallax_name
std::string parallax_name
Definition: rpg_map.h:67
RPG::Map::height
int32_t height
Definition: rpg_map.h:64
RPG::Map::generator_tile_ids
std::vector< int16_t > generator_tile_ids
Definition: rpg_map.h:88