Porytiles
Loading...
Searching...
No Matches
domain_config_validators.hpp File Reference

Domain configuration validators for domain-layer models. More...

Include dependency graph for domain_config_validators.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  porytiles
 

Functions

ChainableResult< ConfigValue< Rgba32 > > porytiles::rgba_alpha_component_opaque (const ConfigValue< Rgba32 > &val)
 Validates that an Rgba32 alpha component is opaque.
 
template<typename T , typename ConfigInterface , typename FetchFunc >
ChainableResult< ConfigValue< T > > porytiles::require_packing_strategy_backtracking (const ConfigValue< T > &val, const ConfigInterface &config, ConfigScopeType type, const std::string &scope, const std::string &other_field_name, FetchFunc fetch_other)
 Validates that 'biased' or 'optimal' tile sharing packing requires 'backtracking' packing strategy.
 

Detailed Description

Domain configuration validators for domain-layer models.

Note
All validators return ChainableResult<ConfigValue<T>> to support composable validation chains.
See also
xcut_config_validators.hpp for layer cross-cutting validators.
chainable_result.hpp for the ChainableResult monadic error handling type.

Definition in file domain_config_validators.hpp.