liblcf
lmt_mapinfo.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/lmt/reader.h"
14#include "lcf/lmt/chunks.h"
15#include "reader_struct_impl.h"
16
17namespace lcf {
18
19// Read MapInfo.
20
21template <>
22char const* const Struct<rpg::MapInfo>::name = "MapInfo";
23static TypedField<rpg::MapInfo, DBString> static_name(
24 &rpg::MapInfo::name,
25 LMT_Reader::ChunkMapInfo::name,
26 "name",
27 0,
28 0
29);
30static TypedField<rpg::MapInfo, int32_t> static_parent_map(
31 &rpg::MapInfo::parent_map,
32 LMT_Reader::ChunkMapInfo::parent_map,
33 "parent_map",
34 0,
35 0
36);
37static TypedField<rpg::MapInfo, int32_t> static_indentation(
38 &rpg::MapInfo::indentation,
39 LMT_Reader::ChunkMapInfo::indentation,
40 "indentation",
41 0,
42 0
43);
44static TypedField<rpg::MapInfo, int32_t> static_type(
45 &rpg::MapInfo::type,
46 LMT_Reader::ChunkMapInfo::type,
47 "type",
48 0,
49 0
50);
51static TypedField<rpg::MapInfo, int32_t> static_scrollbar_x(
52 &rpg::MapInfo::scrollbar_x,
53 LMT_Reader::ChunkMapInfo::scrollbar_x,
54 "scrollbar_x",
55 0,
56 0
57);
58static TypedField<rpg::MapInfo, int32_t> static_scrollbar_y(
59 &rpg::MapInfo::scrollbar_y,
60 LMT_Reader::ChunkMapInfo::scrollbar_y,
61 "scrollbar_y",
62 0,
63 0
64);
65static TypedField<rpg::MapInfo, bool> static_expanded_node(
66 &rpg::MapInfo::expanded_node,
67 LMT_Reader::ChunkMapInfo::expanded_node,
68 "expanded_node",
69 0,
70 0
71);
72static TypedField<rpg::MapInfo, int32_t> static_music_type(
73 &rpg::MapInfo::music_type,
74 LMT_Reader::ChunkMapInfo::music_type,
75 "music_type",
76 1,
77 0
78);
79static TypedField<rpg::MapInfo, rpg::Music> static_music(
80 &rpg::MapInfo::music,
81 LMT_Reader::ChunkMapInfo::music,
82 "music",
83 1,
84 0
85);
86static TypedField<rpg::MapInfo, int32_t> static_background_type(
87 &rpg::MapInfo::background_type,
88 LMT_Reader::ChunkMapInfo::background_type,
89 "background_type",
90 1,
91 0
92);
93static TypedField<rpg::MapInfo, DBString> static_background_name(
94 &rpg::MapInfo::background_name,
95 LMT_Reader::ChunkMapInfo::background_name,
96 "background_name",
97 0,
98 0
99);
100static TypedField<rpg::MapInfo, int32_t> static_teleport(
101 &rpg::MapInfo::teleport,
102 LMT_Reader::ChunkMapInfo::teleport,
103 "teleport",
104 1,
105 0
106);
107static TypedField<rpg::MapInfo, int32_t> static_escape(
108 &rpg::MapInfo::escape,
109 LMT_Reader::ChunkMapInfo::escape,
110 "escape",
111 1,
112 0
113);
114static TypedField<rpg::MapInfo, int32_t> static_save(
115 &rpg::MapInfo::save,
116 LMT_Reader::ChunkMapInfo::save,
117 "save",
118 1,
119 0
120);
122 &rpg::MapInfo::encounters,
123 LMT_Reader::ChunkMapInfo::encounters,
124 "encounters",
125 1,
126 0
127);
128static TypedField<rpg::MapInfo, int32_t> static_encounter_steps(
129 &rpg::MapInfo::encounter_steps,
130 LMT_Reader::ChunkMapInfo::encounter_steps,
131 "encounter_steps",
132 0,
133 0
134);
135static TypedField<rpg::MapInfo, rpg::Rect> static_area_rect(
136 &rpg::MapInfo::area_rect,
137 LMT_Reader::ChunkMapInfo::area_rect,
138 "area_rect",
139 1,
140 0
141);
142
143
144template <>
146 &static_name,
147 &static_parent_map,
148 &static_indentation,
149 &static_type,
150 &static_scrollbar_x,
151 &static_scrollbar_y,
152 &static_expanded_node,
153 &static_music_type,
154 &static_music,
155 &static_background_type,
156 &static_background_name,
157 &static_teleport,
158 &static_escape,
159 &static_save,
160 &static_encounters,
161 &static_encounter_steps,
162 &static_area_rect,
163 NULL
164};
165
166template class Struct<rpg::MapInfo>;
167
168} //namespace lcf
Definition: dbarray.cpp:13