|
Porytiles
|
#include "porytiles/xcut/config/config_scope_type.hpp"Go to the source code of this file.
Namespaces | |
| namespace | porytiles |
Macros | |
| #define | PT_UNWRAP_TILESET_CONFIG_PTR(ptr, config, tileset_name, return_type) |
| Unwraps a tileset-scoped config value via pointer access, returning early if the value is not available. | |
| #define | PT_UNWRAP_TILESET_CONFIG_REF(ref, config, tileset_name, return_type) |
| Unwraps a tileset-scoped config value via reference access, returning early if the value is not available. | |
| #define | PT_UNWRAP_LAYOUT_CONFIG(ptr, config, layout_name, return_type) |
| Unwraps a layout-scoped config value from a DomainConfig, AppConfig, or InfraConfig object, returning early if the value is not available. | |
| #define PT_UNWRAP_LAYOUT_CONFIG | ( | ptr, | |
| config, | |||
| layout_name, | |||
| return_type | |||
| ) |
Unwraps a layout-scoped config value from a DomainConfig, AppConfig, or InfraConfig object, returning early if the value is not available.
This macro retrieves a config value for a given layout and automatically handles the error case. If the config value is not available, it returns a ChainableResult error with a formatted message. Otherwise, it unwraps the value and creates a local variable with the name specified by the config parameter.
| ptr | A pointer to a config object |
| config | The name of the config method to call and the resulting variable name |
| layout_name | The layout name to pass to the config method |
| return_type | The template parameter for ChainableResult in case of error |
Definition at line 77 of file unwrap_config.hpp.
| #define PT_UNWRAP_TILESET_CONFIG_PTR | ( | ptr, | |
| config, | |||
| tileset_name, | |||
| return_type | |||
| ) |
Unwraps a tileset-scoped config value via pointer access, returning early if the value is not available.
This macro retrieves a config value for a given tileset using pointer syntax (ptr->config) and automatically handles the error case. If the config value is not available, it returns a ChainableResult error with a formatted message. Otherwise, it unwraps the value and creates a local variable with the name specified by the config parameter.
| ptr | A pointer to a DomainConfig, AppConfig, or InfraConfig object |
| config | The name of the config method to call and the resulting variable name |
| tileset_name | The tileset name to pass to the config method |
| return_type | The template parameter for ChainableResult in case of error |
Definition at line 22 of file unwrap_config.hpp.
| #define PT_UNWRAP_TILESET_CONFIG_REF | ( | ref, | |
| config, | |||
| tileset_name, | |||
| return_type | |||
| ) |
Unwraps a tileset-scoped config value via reference access, returning early if the value is not available.
This macro retrieves a config value for a given tileset using reference syntax (ref.config) and automatically handles the error case. If the config value is not available, it returns a ChainableResult error with a formatted message. Otherwise, it unwraps the value and creates a local variable with the name specified by the config parameter.
| ref | A reference to a DomainConfig, AppConfig, or InfraConfig object |
| config | The name of the config method to call and the resulting variable name |
| tileset_name | The tileset name to pass to the config method |
| return_type | The template parameter for ChainableResult in case of error |
Definition at line 50 of file unwrap_config.hpp.