Porytiles
Loading...
Searching...
No Matches
porytiles::ConfigProvider Class Referenceabstract

An interface which config implementations can use to load config values. More...

#include <config_provider.hpp>

Inheritance diagram for porytiles::ConfigProvider:
[legend]

Public Member Functions

virtual ~ConfigProvider ()=default
 
virtual std::string name () const =0
 Gets the name of this ConfigProvider, useful for diagnostic purposes.
 
virtual LayerValue< std::size_t > num_tiles_in_primary (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::size_t > num_tiles_total (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::size_t > num_metatiles_in_primary (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::size_t > num_metatiles_total (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::size_t > num_pals_in_primary (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::size_t > num_pals_total (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::size_t > max_map_data_size (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::size_t > num_tiles_per_metatile (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< Rgba32extrinsic_transparency (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< ArtifactEditModetiles_edit_mode (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< ArtifactEditModepals_edit_mode (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< bool > pal_hints_enabled (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::vector< PaletteHint > > pal_hints (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< PackingStrategyTypepacking_strategy (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< PackingStrategyParamspacking_strategy_params (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< TileSharingPackingtile_sharing_packing (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< TileSharingAlignmenttile_sharing_alignment (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< TilesPalModetiles_pal_mode (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< AnimPalResolutionStrategyglobal_anim_pal_resolution_strategy (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< AnimKeyFrameResolutionStrategyglobal_anim_key_frame_resolution_strategy (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< AnimMultiPalSubtileResolutionStrategyglobal_anim_multi_pal_subtile_resolution_strategy (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< FrameLinkingglobal_frame_linking (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< PerAnimOverridesper_anim_overrides (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< bool > cross_tileset_anim_linking (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< bool > verify_checksums (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< PrimaryPairingModeprimary_pairing_mode (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::vector< std::string > > primary_pairing_partners (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::vector< std::string > > diagnostic_warnings_exclude (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::vector< std::string > > diagnostic_warnings_include (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::vector< std::string > > diagnostic_remarks_exclude (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::vector< std::string > > diagnostic_remarks_include (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::string > tileset_paths_primary_src (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::string > tileset_paths_primary_bin (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::string > tileset_paths_secondary_src (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::string > tileset_paths_secondary_bin (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< std::size_t > metatile_attr_size (ConfigScopeType type, const std::string &scope) const
 
virtual LayerValue< bool > tileset_animations_wire_anim_code (ConfigScopeType type, const std::string &scope) const
 

Detailed Description

An interface which config implementations can use to load config values.

ConfigProvider is basically just a copy of all three layer configs (domain, app, infra) but with LayerValue return types. ConfigProvider provides a default implementation for each method which returns an empty LayerValue. This is helpful for ConfigProvider implementations, since often the implementations may not want to provide a value for every config param.

Definition at line 38 of file config_provider.hpp.

Constructor & Destructor Documentation

◆ ~ConfigProvider()

virtual porytiles::ConfigProvider::~ConfigProvider ( )
virtualdefault

Member Function Documentation

◆ cross_tileset_anim_linking()

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

◆ diagnostic_remarks_exclude()

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

◆ diagnostic_remarks_include()

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

◆ diagnostic_warnings_exclude()

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

◆ diagnostic_warnings_include()

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

◆ extrinsic_transparency()

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

◆ global_anim_key_frame_resolution_strategy()

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

◆ global_anim_multi_pal_subtile_resolution_strategy()

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

◆ global_anim_pal_resolution_strategy()

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

◆ global_frame_linking()

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

◆ max_map_data_size()

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

◆ metatile_attr_size()

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

◆ name()

virtual std::string porytiles::ConfigProvider::name ( ) const
pure virtual

◆ num_metatiles_in_primary()

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

◆ num_metatiles_total()

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

◆ num_pals_in_primary()

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

◆ num_pals_total()

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

◆ num_tiles_in_primary()

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

◆ num_tiles_per_metatile()

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

◆ num_tiles_total()

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

◆ packing_strategy()

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

◆ packing_strategy_params()

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

◆ pal_hints()

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

◆ pal_hints_enabled()

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

◆ pals_edit_mode()

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

◆ per_anim_overrides()

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

◆ primary_pairing_mode()

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

◆ primary_pairing_partners()

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

◆ tile_sharing_alignment()

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

◆ tile_sharing_packing()

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

◆ tiles_edit_mode()

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

◆ tiles_pal_mode()

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

◆ tileset_animations_wire_anim_code()

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

◆ tileset_paths_primary_bin()

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

◆ tileset_paths_primary_src()

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

◆ tileset_paths_secondary_bin()

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

◆ tileset_paths_secondary_src()

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

◆ verify_checksums()

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

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