Porytiles
Loading...
Searching...
No Matches
porytiles::DefaultProvider Class Referencefinal

A default implementation of ConfigProvider that provides sensible default values. More...

#include <default_provider.hpp>

Inheritance diagram for porytiles::DefaultProvider:
[legend]
Collaboration diagram for porytiles::DefaultProvider:
[legend]

Public Member Functions

std::string name () const override
 Gets the name of this config layer.
 
LayerValue< std::size_t > num_tiles_in_primary (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< std::size_t > num_tiles_total (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::size_t > num_metatiles_total (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_pals_total (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::size_t > num_tiles_per_metatile (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< Rgba32extrinsic_transparency (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< ArtifactEditModetiles_edit_mode (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< ArtifactEditModepals_edit_mode (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< bool > pal_hints_enabled (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< std::vector< PaletteHint > > pal_hints (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< PackingStrategyTypepacking_strategy (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< PackingStrategyParamspacking_strategy_params (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< TileSharingPackingtile_sharing_packing (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< TileSharingAlignmenttile_sharing_alignment (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< TilesPalModetiles_pal_mode (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< AnimPalResolutionStrategyglobal_anim_pal_resolution_strategy (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< AnimKeyFrameResolutionStrategyglobal_anim_key_frame_resolution_strategy (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< AnimMultiPalSubtileResolutionStrategyglobal_anim_multi_pal_subtile_resolution_strategy (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< FrameLinkingglobal_frame_linking (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< PerAnimOverridesper_anim_overrides (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< bool > cross_tileset_anim_linking (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< bool > verify_checksums (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< PrimaryPairingModeprimary_pairing_mode (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::vector< std::string > > diagnostic_warnings_exclude (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::vector< std::string > > diagnostic_remarks_exclude (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_primary_src (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::string > tileset_paths_secondary_src (ConfigScopeType type, const std::string &scope) const override
 
LayerValue< std::string > tileset_paths_secondary_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< bool > tileset_animations_wire_anim_code (ConfigScopeType type, const std::string &scope) const override
 
- Public Member Functions inherited from porytiles::ConfigProvider
virtual ~ConfigProvider ()=default
 

Detailed Description

A default implementation of ConfigProvider that provides sensible default values.

This provider returns default values for all configuration parameters. It's useful as a base layer in a configuration system where other providers can override specific values.

Definition at line 21 of file default_provider.hpp.

Member Function Documentation

◆ cross_tileset_anim_linking()

LayerValue< bool > porytiles::DefaultProvider::cross_tileset_anim_linking ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 138 of file default_provider.cpp.

◆ diagnostic_remarks_exclude()

LayerValue< std::vector< std::string > > porytiles::DefaultProvider::diagnostic_remarks_exclude ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 168 of file default_provider.cpp.

◆ diagnostic_remarks_include()

LayerValue< std::vector< std::string > > porytiles::DefaultProvider::diagnostic_remarks_include ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 173 of file default_provider.cpp.

◆ diagnostic_warnings_exclude()

LayerValue< std::vector< std::string > > porytiles::DefaultProvider::diagnostic_warnings_exclude ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 158 of file default_provider.cpp.

◆ diagnostic_warnings_include()

LayerValue< std::vector< std::string > > porytiles::DefaultProvider::diagnostic_warnings_include ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 163 of file default_provider.cpp.

◆ extrinsic_transparency()

LayerValue< Rgba32 > porytiles::DefaultProvider::extrinsic_transparency ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 63 of file default_provider.cpp.

◆ global_anim_key_frame_resolution_strategy()

LayerValue< AnimKeyFrameResolutionStrategy > porytiles::DefaultProvider::global_anim_key_frame_resolution_strategy ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 118 of file default_provider.cpp.

◆ global_anim_multi_pal_subtile_resolution_strategy()

LayerValue< AnimMultiPalSubtileResolutionStrategy > porytiles::DefaultProvider::global_anim_multi_pal_subtile_resolution_strategy ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 123 of file default_provider.cpp.

◆ global_anim_pal_resolution_strategy()

LayerValue< AnimPalResolutionStrategy > porytiles::DefaultProvider::global_anim_pal_resolution_strategy ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 113 of file default_provider.cpp.

◆ global_frame_linking()

LayerValue< FrameLinking > porytiles::DefaultProvider::global_frame_linking ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 128 of file default_provider.cpp.

◆ max_map_data_size()

LayerValue< std::size_t > porytiles::DefaultProvider::max_map_data_size ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 53 of file default_provider.cpp.

◆ metatile_attr_size()

LayerValue< std::size_t > porytiles::DefaultProvider::metatile_attr_size ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 198 of file default_provider.cpp.

◆ name()

std::string porytiles::DefaultProvider::name ( ) const
overridevirtual

Gets the name of this config layer.

Returns
The name "DefaultProvider"

Implements porytiles::ConfigProvider.

Definition at line 18 of file default_provider.cpp.

◆ num_metatiles_in_primary()

LayerValue< std::size_t > porytiles::DefaultProvider::num_metatiles_in_primary ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 33 of file default_provider.cpp.

◆ num_metatiles_total()

LayerValue< std::size_t > porytiles::DefaultProvider::num_metatiles_total ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 38 of file default_provider.cpp.

◆ num_pals_in_primary()

LayerValue< std::size_t > porytiles::DefaultProvider::num_pals_in_primary ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 43 of file default_provider.cpp.

◆ num_pals_total()

LayerValue< std::size_t > porytiles::DefaultProvider::num_pals_total ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 48 of file default_provider.cpp.

◆ num_tiles_in_primary()

LayerValue< std::size_t > porytiles::DefaultProvider::num_tiles_in_primary ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 23 of file default_provider.cpp.

◆ num_tiles_per_metatile()

LayerValue< std::size_t > porytiles::DefaultProvider::num_tiles_per_metatile ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 58 of file default_provider.cpp.

◆ num_tiles_total()

LayerValue< std::size_t > porytiles::DefaultProvider::num_tiles_total ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 28 of file default_provider.cpp.

◆ packing_strategy()

LayerValue< PackingStrategyType > porytiles::DefaultProvider::packing_strategy ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 88 of file default_provider.cpp.

◆ packing_strategy_params()

LayerValue< PackingStrategyParams > porytiles::DefaultProvider::packing_strategy_params ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 93 of file default_provider.cpp.

◆ pal_hints()

LayerValue< std::vector< PaletteHint > > porytiles::DefaultProvider::pal_hints ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 83 of file default_provider.cpp.

◆ pal_hints_enabled()

LayerValue< bool > porytiles::DefaultProvider::pal_hints_enabled ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 78 of file default_provider.cpp.

◆ pals_edit_mode()

LayerValue< ArtifactEditMode > porytiles::DefaultProvider::pals_edit_mode ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 73 of file default_provider.cpp.

◆ per_anim_overrides()

LayerValue< PerAnimOverrides > porytiles::DefaultProvider::per_anim_overrides ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 133 of file default_provider.cpp.

◆ primary_pairing_mode()

LayerValue< PrimaryPairingMode > porytiles::DefaultProvider::primary_pairing_mode ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 148 of file default_provider.cpp.

◆ primary_pairing_partners()

LayerValue< std::vector< std::string > > porytiles::DefaultProvider::primary_pairing_partners ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 153 of file default_provider.cpp.

◆ tile_sharing_alignment()

LayerValue< TileSharingAlignment > porytiles::DefaultProvider::tile_sharing_alignment ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 103 of file default_provider.cpp.

◆ tile_sharing_packing()

LayerValue< TileSharingPacking > porytiles::DefaultProvider::tile_sharing_packing ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 98 of file default_provider.cpp.

◆ tiles_edit_mode()

LayerValue< ArtifactEditMode > porytiles::DefaultProvider::tiles_edit_mode ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 68 of file default_provider.cpp.

◆ tiles_pal_mode()

LayerValue< TilesPalMode > porytiles::DefaultProvider::tiles_pal_mode ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 108 of file default_provider.cpp.

◆ tileset_animations_wire_anim_code()

LayerValue< bool > porytiles::DefaultProvider::tileset_animations_wire_anim_code ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 203 of file default_provider.cpp.

◆ tileset_paths_primary_bin()

LayerValue< std::string > porytiles::DefaultProvider::tileset_paths_primary_bin ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 183 of file default_provider.cpp.

◆ tileset_paths_primary_src()

LayerValue< std::string > porytiles::DefaultProvider::tileset_paths_primary_src ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 178 of file default_provider.cpp.

◆ tileset_paths_secondary_bin()

LayerValue< std::string > porytiles::DefaultProvider::tileset_paths_secondary_bin ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 193 of file default_provider.cpp.

◆ tileset_paths_secondary_src()

LayerValue< std::string > porytiles::DefaultProvider::tileset_paths_secondary_src ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 188 of file default_provider.cpp.

◆ verify_checksums()

LayerValue< bool > porytiles::DefaultProvider::verify_checksums ( ConfigScopeType  type,
const std::string &  scope 
) const
overridevirtual

Reimplemented from porytiles::ConfigProvider.

Definition at line 143 of file default_provider.cpp.


The documentation for this class was generated from the following files: