Porytiles
Loading...
Searching...
No Matches
default_provider.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace porytiles {
6
7// NOTE: DO NOT EDIT THIS FILE DIRECTLY. It is AUTO-GENERATED from config_schema.yaml.
8// To add new config values or make other changes, edit config_schema.yaml and regenerate via:
9//
10// uv run scripts/generate_config.py
11
17class DefaultProvider final : public ConfigProvider {
18 public:
22 [[nodiscard]] std::string name() const override;
23
24 [[nodiscard]] LayerValue<std::size_t>
25 num_tiles_in_primary(ConfigScopeType type, const std::string &scope) const override;
26
27 [[nodiscard]] LayerValue<std::size_t>
28 num_tiles_total(ConfigScopeType type, const std::string &scope) const override;
29
30 [[nodiscard]] LayerValue<std::size_t>
31 num_metatiles_in_primary(ConfigScopeType type, const std::string &scope) const override;
32
33 [[nodiscard]] LayerValue<std::size_t>
34 num_metatiles_total(ConfigScopeType type, const std::string &scope) const override;
35
36 [[nodiscard]] LayerValue<std::size_t>
37 num_palettes_in_primary(ConfigScopeType type, const std::string &scope) const override;
38
39 [[nodiscard]] LayerValue<std::size_t>
40 num_palettes_total(ConfigScopeType type, const std::string &scope) const override;
41
42 [[nodiscard]] LayerValue<std::size_t>
43 max_map_data_size(ConfigScopeType type, const std::string &scope) const override;
44
45 [[nodiscard]] LayerValue<std::size_t>
46 num_tiles_per_metatile(ConfigScopeType type, const std::string &scope) const override;
47
48 [[nodiscard]] LayerValue<Rgba32>
49 extrinsic_transparency(ConfigScopeType type, const std::string &scope) const override;
50
51 [[nodiscard]] LayerValue<bool>
52 ignore_triple_layer_content(ConfigScopeType type, const std::string &scope) const override;
53
55 tiles_edit_mode(ConfigScopeType type, const std::string &scope) const override;
56
58 palettes_edit_mode(ConfigScopeType type, const std::string &scope) const override;
59
60 [[nodiscard]] LayerValue<bool> palette_hints_enabled(ConfigScopeType type, const std::string &scope) const override;
61
63 palette_hints(ConfigScopeType type, const std::string &scope) const override;
64
66 packing_strategy(ConfigScopeType type, const std::string &scope) const override;
67
69 packing_strategy_params(ConfigScopeType type, const std::string &scope) const override;
70
72 tile_sharing_packing(ConfigScopeType type, const std::string &scope) const override;
73
75 tile_sharing_alignment(ConfigScopeType type, const std::string &scope) const override;
76
78 tiles_palette_mode(ConfigScopeType type, const std::string &scope) const override;
79
81 global_anim_palette_resolution_strategy(ConfigScopeType type, const std::string &scope) const override;
82
84 global_anim_key_frame_resolution_strategy(ConfigScopeType type, const std::string &scope) const override;
85
88 ConfigScopeType type, const std::string &scope) const override;
89
90 [[nodiscard]] LayerValue<FrameLinking>
91 global_frame_linking(ConfigScopeType type, const std::string &scope) const override;
92
94 per_anim_overrides(ConfigScopeType type, const std::string &scope) const override;
95
96 [[nodiscard]] LayerValue<bool>
97 cross_tileset_anim_linking(ConfigScopeType type, const std::string &scope) const override;
98
99 [[nodiscard]] LayerValue<bool> verify_checksums(ConfigScopeType type, const std::string &scope) const override;
100
102 primary_pairing_mode(ConfigScopeType type, const std::string &scope) const override;
103
105 primary_pairing_partners(ConfigScopeType type, const std::string &scope) const override;
106
108 diagnostic_warnings_exclude(ConfigScopeType type, const std::string &scope) const override;
109
111 diagnostic_warnings_include(ConfigScopeType type, const std::string &scope) const override;
112
114 diagnostic_remarks_exclude(ConfigScopeType type, const std::string &scope) const override;
115
117 diagnostic_remarks_include(ConfigScopeType type, const std::string &scope) const override;
118
119 [[nodiscard]] LayerValue<std::string>
120 tileset_paths_primary_src(ConfigScopeType type, const std::string &scope) const override;
121
122 [[nodiscard]] LayerValue<std::string>
123 tileset_paths_primary_bin(ConfigScopeType type, const std::string &scope) const override;
124
125 [[nodiscard]] LayerValue<std::string>
126 tileset_paths_secondary_src(ConfigScopeType type, const std::string &scope) const override;
127
128 [[nodiscard]] LayerValue<std::string>
129 tileset_paths_secondary_bin(ConfigScopeType type, const std::string &scope) const override;
130
132 metatile_attribute_size(ConfigScopeType type, const std::string &scope) const override;
133
135 metatile_attribute_declaration_size(ConfigScopeType type, const std::string &scope) const override;
136
138 metatile_attribute_fields(ConfigScopeType type, const std::string &scope) const override;
139
141 metatile_attribute_field_overrides(ConfigScopeType type, const std::string &scope) const override;
142
144 role_pins(ConfigScopeType type, const std::string &scope) const override;
145
146 [[nodiscard]] LayerValue<bool>
147 tileset_animations_wire_anim_code(ConfigScopeType type, const std::string &scope) const override;
148};
149
150} // namespace porytiles
An interface which config implementations can use to load config values.
A default implementation of ConfigProvider that provides sensible default values.
LayerValue< MetatileAttributeFieldOverrides > metatile_attribute_field_overrides(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::optional< std::size_t > > metatile_attribute_size(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > num_palettes_total(ConfigScopeType type, const std::string &scope) const override
LayerValue< bool > tileset_animations_wire_anim_code(ConfigScopeType type, const std::string &scope) const override
LayerValue< MetatileAttributeFieldDefinitions > metatile_attribute_fields(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< AnimPaletteResolutionStrategy > global_anim_palette_resolution_strategy(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::size_t > num_tiles_per_metatile(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_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< PrimaryPairingMode > primary_pairing_mode(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::string > tileset_paths_primary_bin(ConfigScopeType type, const std::string &scope) const override
LayerValue< FrameLinking > global_frame_linking(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< std::size_t > max_map_data_size(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::vector< PaletteHint > > palette_hints(ConfigScopeType type, const std::string &scope) const override
LayerValue< TileSharingPacking > tile_sharing_packing(ConfigScopeType type, const std::string &scope) const override
LayerValue< AnimMultiPaletteSubtileResolutionStrategy > global_anim_multi_palette_subtile_resolution_strategy(ConfigScopeType type, const std::string &scope) const override
LayerValue< Rgba32 > extrinsic_transparency(ConfigScopeType type, const std::string &scope) const override
LayerValue< PerAnimOverrides > per_anim_overrides(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< bool > ignore_triple_layer_content(ConfigScopeType type, const std::string &scope) const override
LayerValue< PackingStrategyType > packing_strategy(ConfigScopeType type, const std::string &scope) const override
LayerValue< RolePinDefinitions > role_pins(ConfigScopeType type, const std::string &scope) const override
LayerValue< TileSharingAlignment > tile_sharing_alignment(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > num_palettes_in_primary(ConfigScopeType type, const std::string &scope) const override
LayerValue< ArtifactEditMode > tiles_edit_mode(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::size_t > num_tiles_total(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::vector< std::string > > primary_pairing_partners(ConfigScopeType type, const std::string &scope) const override
LayerValue< bool > palette_hints_enabled(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::string > tileset_paths_primary_src(ConfigScopeType type, const std::string &scope) const override
LayerValue< PackingStrategyParams > packing_strategy_params(ConfigScopeType type, const std::string &scope) const override
LayerValue< std::optional< std::size_t > > metatile_attribute_declaration_size(ConfigScopeType type, const std::string &scope) const override
LayerValue< bool > cross_tileset_anim_linking(ConfigScopeType type, const std::string &scope) const override
std::string name() const override
Gets the name of this config layer.
LayerValue< bool > verify_checksums(ConfigScopeType type, const std::string &scope) const override
LayerValue< ArtifactEditMode > palettes_edit_mode(ConfigScopeType type, const std::string &scope) const override
LayerValue< TilesPaletteMode > tiles_palette_mode(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< std::string > tileset_paths_secondary_bin(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...