MCPcopy Create free account
hub / github.com/black-sliver/PopTracker / HighlightToString

Function HighlightToString

src/core/locationsection.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26std::string_view HighlightToString(const Highlight highlight)
27{
28 switch (highlight) {
29 case Highlight::AVOID:
30 return "avoid";
31 case Highlight::NONE:
32 return "";
33 case Highlight::NO_PRIORITY:
34 return "no_priority";
35 case Highlight::UNSPECIFIED:
36 return "unspecified";
37 case Highlight::PRIORITY:
38 return "priority";
39 }
40 return ""; // invalid / unknown
41}
42
43
44const LuaInterface<LocationSection>::MethodMap LocationSection::Lua_Methods = {};

Callers 1

saveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected