40 panic(
"invalid LayerMode integer: " + std::to_string(s));
74 panic(
"unhandled LayerMode value");
107 switch (layer_type) {
109 return "Normal - Middle/Top";
111 return "Covered - Bottom/Middle";
113 return "Split - Bottom/Top";
115 panic(
"to_string(LayerType) unknown LayerType");
138 constexpr auto parse(std::format_parse_context &ctx)
151 constexpr auto parse(std::format_parse_context &ctx)
A result type that maintains a chainable sequence of errors for debugging and error reporting.
static const Style bold
Bold text formatting.
std::optional< LayerMode > layer_mode_from_str(const std::string &s)
Converts a string to LayerMode.
LayerMode
Specifies whether a metatile uses dual-layer or triple-layer mode.
void panic(const StringViewSourceLoc &s)
Unconditionally terminates the program with a panic message.
LayerMode layer_mode_from_val(std::size_t s)
Converts a numeric value to LayerMode.
ChainableResult< LayerType > layer_type_from_int(unsigned int i)
Converts an integer to LayerType.
@ split
Split the animation into separate animations for each palette variant (not yet implemented).
std::ostream & operator<<(std::ostream &os, const PrimaryPairingMode m)
Stream insertion operator for PrimaryPairingMode.
LayerType
Specifies which layers of a metatile are used for rendering.
std::string to_string(const PrimaryPairingMode m)
Converts a PrimaryPairingMode to its canonical string representation.