MCPcopy Create free account
hub / github.com/ddnet/ddnet / GetColor

Method GetColor

src/engine/shared/console.cpp:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81ColorHSLA CConsole::CResult::GetColor(unsigned Index, float DarkestLighting) const
82{
83 if(Index >= m_NumArgs)
84 return ColorHSLA(0, 0, 0);
85 return ColorParse(m_apArgs[Index], DarkestLighting).value_or(ColorHSLA(0, 0, 0));
86}
87
88void CConsole::CCommand::SetAccessLevel(EAccessLevel AccessLevel)
89{

Callers 2

CommandCallbackMethod · 0.45
Con_ToggleMethod · 0.45

Calls 1

ColorHSLAClass · 0.50

Tested by

no test coverage detected