LeviLamina
Loading...
Searching...
No Matches
ColorFormat.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace mce { class Color; }
8// clang-format on
9
10namespace ColorFormat {
11// functions
12// NOLINTBEGIN
13#ifdef LL_PLAT_C
14MCNAPI ::std::string ColorCodeFromColor(::mce::Color const& color);
15
16MCNAPI ::mce::Color const* ColorFromChar(char colorCode);
17
18MCNAPI ::mce::Color const* ColorFromColorCode(::std::string const& colorCode);
19#endif
20
21MCNAPI ::std::string_view const FormatCodeFromName(::std::string const& str);
22
23#ifdef LL_PLAT_C
24MCNAPI bool IsColorCode(char c);
25#endif
26
27MCNAPI bool IsFormatOrColorCode(char c);
28
29#ifdef LL_PLAT_C
30MCNAPI ::std::string NameFromFormatCode(::std::string const& formatCode);
31
32MCNAPI void setColors(::std::array<::mce::Color, 28> const& colors);
33#endif
34// NOLINTEND
35
36// static variables
37// NOLINTBEGIN
38constexpr inline std::string_view AQUA = "§b";
39
40constexpr inline std::string_view BLACK = "§0";
41
42constexpr inline std::string_view BLUE = "§9";
43
44constexpr inline std::string_view BOLD = "§l";
45
46constexpr inline std::string_view DARK_AQUA = "§3";
47
48constexpr inline std::string_view DARK_BLUE = "§1";
49
50constexpr inline std::string_view DARK_GRAY = "§8";
51
52constexpr inline std::string_view DARK_GREEN = "§2";
53
54constexpr inline std::string_view DARK_PURPLE = "§5";
55
56constexpr inline std::string_view DARK_RED = "§4";
57
58constexpr inline std::string_view ESCAPE = "§";
59
60constexpr inline std::string_view GOLD = "§6";
61
62constexpr inline std::string_view GRAY = "§7";
63
64constexpr inline std::string_view GREEN = "§a";
65
66constexpr inline std::string_view ITALIC = "§o";
67
68constexpr inline std::string_view LIGHT_PURPLE = "§d";
69
70constexpr inline std::string_view MATERIAL_AMETHYST = "§u";
71
72constexpr inline std::string_view MATERIAL_COPPER = "§n";
73
74constexpr inline std::string_view MATERIAL_DIAMOND = "§s";
75
76constexpr inline std::string_view MATERIAL_EMERALD = "§q";
77
78constexpr inline std::string_view MATERIAL_GOLD = "§p";
79
80constexpr inline std::string_view MATERIAL_IRON = "§i";
81
82constexpr inline std::string_view MATERIAL_LAPIS = "§t";
83
84constexpr inline std::string_view MATERIAL_NETHERITE = "§j";
85
86constexpr inline std::string_view MATERIAL_QUARTZ = "§h";
87
88constexpr inline std::string_view MATERIAL_REDSTONE = "§m";
89
90constexpr inline std::string_view MATERIAL_RESIN = "§v";
91
92constexpr inline std::string_view MINECOIN_GOLD = "§g";
93
94constexpr inline std::string_view OBFUSCATED = "§k";
95
96constexpr inline std::string_view RED = "§c";
97
98constexpr inline std::string_view RESET = "§r";
99
100constexpr inline std::string_view WHITE = "§f";
101
102constexpr inline std::string_view YELLOW = "§e";
103// NOLINTEND
104
105} // namespace ColorFormat
Definition Color.h:13