Porytiles
Loading...
Searching...
No Matches
header_define_provider.cpp
Go to the documentation of this file.
2
3#include <filesystem>
4#include <string>
5#include <vector>
6
8
9namespace porytiles {
10
11/*
12 * NOTE: DO NOT EDIT THIS FILE DIRECTLY. It is AUTO-GENERATED from config_schema.yaml.
13 * To add new config values or make other changes, edit config_schema.yaml and regenerate via:
14 *
15 * uv run scripts/generate_config.py
16 */
17
18std::string HeaderDefineProvider::name() const
19{
20 return "HeaderDefineProvider";
21}
22
24{
25 const auto header_path = project_root_ / header_relative_path_;
26 return search_header_define<std::size_t>(
27 parser_driver_,
28 format_,
29 header_path,
30 "NUM_TILES_IN_PRIMARY",
31 parse_size_t,
32 "NUM_TILES_IN_PRIMARY",
33 "NUM_TILES_IN_PRIMARY");
34}
35
37{
38 const auto header_path = project_root_ / header_relative_path_;
39 return search_header_define<std::size_t>(
40 parser_driver_,
41 format_,
42 header_path,
43 "NUM_TILES_TOTAL",
44 parse_size_t,
45 "NUM_TILES_TOTAL",
46 "NUM_TILES_TOTAL");
47}
48
50{
51 const auto header_path = project_root_ / header_relative_path_;
52 return search_header_define<std::size_t>(
53 parser_driver_,
54 format_,
55 header_path,
56 "NUM_METATILES_IN_PRIMARY",
57 parse_size_t,
58 "NUM_METATILES_IN_PRIMARY",
59 "NUM_METATILES_IN_PRIMARY");
60}
61
63{
64 const auto header_path = project_root_ / header_relative_path_;
65 return search_header_define<std::size_t>(
66 parser_driver_,
67 format_,
68 header_path,
69 "NUM_METATILES_TOTAL",
70 parse_size_t,
71 "NUM_METATILES_TOTAL",
72 "NUM_METATILES_TOTAL");
73}
74
76{
77 const auto header_path = project_root_ / header_relative_path_;
78 return search_header_define<std::size_t>(
79 parser_driver_,
80 format_,
81 header_path,
82 "NUM_PALS_IN_PRIMARY",
83 parse_size_t,
84 "NUM_PALS_IN_PRIMARY",
85 "NUM_PALS_IN_PRIMARY");
86}
87
89{
90 const auto header_path = project_root_ / header_relative_path_;
91 return search_header_define<std::size_t>(
92 parser_driver_,
93 format_,
94 header_path,
95 "NUM_PALS_TOTAL",
96 parse_size_t,
97 "NUM_PALS_TOTAL",
98 "NUM_PALS_TOTAL");
99}
100
102{
103 const auto header_path = project_root_ / header_relative_path_;
104 return search_header_define<std::size_t>(
105 parser_driver_,
106 format_,
107 header_path,
108 "MAX_MAP_DATA_SIZE",
109 parse_size_t,
110 "MAX_MAP_DATA_SIZE",
111 "MAX_MAP_DATA_SIZE");
112}
113
115{
116 const auto header_path = project_root_ / header_relative_path_;
117 return search_header_define<std::size_t>(
118 parser_driver_,
119 format_,
120 header_path,
121 "NUM_TILES_PER_METATILE",
122 parse_size_t,
123 "NUM_TILES_PER_METATILE",
124 "NUM_TILES_PER_METATILE");
125}
126
128{
129 // No header_define specified for this config value
131}
132
134{
135 // No header_define specified for this config value
137}
138
140{
141 // No header_define specified for this config value
143}
144
146{
147 // No header_define specified for this config value
149}
150
152{
153 // No header_define specified for this config value
155}
156
158{
159 // No header_define specified for this config value
161}
162
164{
165 // No header_define specified for this config value
167}
168
170{
171 // No header_define specified for this config value
173}
174
176{
177 // No header_define specified for this config value
179}
180
182{
183 // No header_define specified for this config value
185}
186
188{
189 // No header_define specified for this config value
191}
192
194{
195 // No header_define specified for this config value
197}
198
200{
201 // No header_define specified for this config value
203}
204
206{
207 // No header_define specified for this config value
209}
210
212{
213 // No header_define specified for this config value
215}
216
218{
219 // No header_define specified for this config value
221}
222
224{
225 // No header_define specified for this config value
227}
228
230{
231 // No header_define specified for this config value
233}
234
236{
237 // No header_define specified for this config value
239}
240
242{
243 // No header_define specified for this config value
245}
246
248{
249 // No header_define specified for this config value
251}
252
254{
255 // No header_define specified for this config value
257}
258
260{
261 // No header_define specified for this config value
263}
264
266{
267 // No header_define specified for this config value
269}
270
272{
273 // No header_define specified for this config value
275}
276
278{
279 // No header_define specified for this config value
281}
282
284{
285 // No header_define specified for this config value
287}
288
290{
291 // No header_define specified for this config value
293}
294
296{
297 // No header_define specified for this config value
299}
300
301} // namespace porytiles
LayerValue< ArtifactEditMode > tiles_edit_mode(ConfigScopeType type, const std::string &scope) const override
LayerValue< Rgba32 > extrinsic_transparency(ConfigScopeType type, const std::string &scope) const override
LayerValue< TileSharingPacking > tile_sharing_packing(ConfigScopeType type, const std::string &scope) const override
LayerValue< TileSharingAlignment > tile_sharing_alignment(ConfigScopeType type, const std::string &scope) const override
LayerValue< FrameLinking > global_frame_linking(ConfigScopeType type, const std::string &scope) const override
LayerValue< bool > verify_checksums(ConfigScopeType type, const std::string &scope) const override
LayerValue< PerAnimOverrides > per_anim_overrides(ConfigScopeType type, const std::string &scope) const override
LayerValue< TilesPalMode > tiles_pal_mode(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > num_pals_in_primary(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > num_tiles_in_primary(ConfigScopeType type, const std::string &scope) const override
LayerValue< AnimKeyFrameResolutionStrategy > global_anim_key_frame_resolution_strategy(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > num_metatiles_in_primary(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::string > tileset_paths_secondary_src(ConfigScopeType type, const std::string &scope) const override
LayerValue< AnimPalResolutionStrategy > global_anim_pal_resolution_strategy(ConfigScopeType type, const std::string &scope) const override
LayerValue< AnimMultiPalSubtileResolutionStrategy > global_anim_multi_pal_subtile_resolution_strategy(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::vector< std::string > > diagnostic_warnings_include(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::string > tileset_paths_primary_src(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::vector< std::string > > primary_pairing_partners(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::string > tileset_paths_primary_bin(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > metatile_attr_size(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::vector< PaletteHint > > pal_hints(ConfigScopeType type, const std::string &scope) const override
LayerValue< PrimaryPairingMode > primary_pairing_mode(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > num_metatiles_total(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::vector< std::string > > diagnostic_remarks_exclude(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > num_tiles_total(ConfigScopeType type, const std::string &scope) const override
LayerValue< PackingStrategyType > packing_strategy(ConfigScopeType type, const std::string &scope) const override
std::string name() const override
Gets the name of this config layer.
LayerValue< std::size_t > num_tiles_per_metatile(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > max_map_data_size(ConfigScopeType type, const std::string &scope) const override
LayerValue< ArtifactEditMode > pals_edit_mode(ConfigScopeType type, const std::string &scope) const override
LayerValue< bool > tileset_animations_wire_anim_code(ConfigScopeType type, const std::string &scope) const override
LayerValue< bool > pal_hints_enabled(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > num_pals_total(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::vector< std::string > > diagnostic_remarks_include(ConfigScopeType type, const std::string &scope) const override
LayerValue< PackingStrategyParams > packing_strategy_params(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::vector< std::string > > diagnostic_warnings_exclude(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::string > tileset_paths_secondary_bin(ConfigScopeType type, const std::string &scope) const override
LayerValue< bool > cross_tileset_anim_linking(ConfigScopeType type, const std::string &scope) const override
ConfigScopeType
Specifies the scope type for configuration value lookups.
A small container that holds an optional-wrapped value, validation state, and metadata about the valu...
static LayerValue not_provided()
Creates a LayerValue representing that the provider does not supply this configuration.