Porytiles
Loading...
Searching...
No Matches
infra_config.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
9
10namespace porytiles2 {
11
12/*
13 * NOTE: DO NOT EDIT THIS FILE DIRECTLY. It is AUTO-GENERATED from config_schema.yaml.
14 * To add new config values or make other changes, edit config_schema.yaml and regenerate using
15 * Scripts/generate_config.py.
16 */
17
26 public:
27 virtual ~InfraConfig() = default;
28
29 // Public method with validation
31 tiles_pal_mode(const std::string &tileset) const
32 {
33 auto raw_val = tiles_pal_mode_raw(tileset);
34 return raw_val;
35 }
36
37 protected:
38
39 // Protected virtual method that fetches raw value from provider
41 tiles_pal_mode_raw(const std::string &tileset) const = 0;
42};
43
44} // namespace porytiles2
A result type that maintains a chainable sequence of errors for debugging and error reporting.
Interface that defines a complete infra layer configuration.
virtual ~InfraConfig()=default
ChainableResult< ConfigValue< TilesPalMode > > tiles_pal_mode(const std::string &tileset) const
virtual ChainableResult< ConfigValue< TilesPalMode > > tiles_pal_mode_raw(const std::string &tileset) const =0