6#include <unordered_map>
33 if (configs.empty()) {
36 std::string result =
"{";
38 for (
const auto &[key, value] : configs) {
42 result += key +
"={linking=" + (value.linking.has_value() ?
to_string(*value.linking) :
"none") +
44 (value.pal_resolution_strategy.has_value() ?
to_string(*value.pal_resolution_strategy) :
"none") +
45 ", per_tile_strategies=" + std::to_string(value.per_tile_pal_resolution_strategies.size()) +
"}";
68 constexpr auto parse(std::format_parse_context &ctx)
std::ostream & operator<<(std::ostream &os, const PrimaryPairingMode m)
Stream insertion operator for PrimaryPairingMode.
std::unordered_map< std::string, PerAnimOverride > PerAnimOverrides
Per-animation configuration map.
std::string to_string(const PrimaryPairingMode m)
Converts a PrimaryPairingMode to its canonical string representation.