test201
auto test201 =
q{--- test201
// Enum of structs
enum Colors : Color {
UNEXPLORED = Color(0, 0, 0),
DARK_WALL = Color(0, 0, 100),
}
struct Color {
u8 r;
u8 g;
u8 b;
}
// Cast from enum to base struct
Color color = Colors.DARK_WALL;
};
tests passing
functionsvariables