MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ConsoleCommandHelp

Function ConsoleCommandHelp

src/openrct2/interface/InteractiveConsole.cpp:1904–1921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1902}
1903
1904static void ConsoleCommandHelp(InteractiveConsole& console, const arguments_t& argv)
1905{
1906 if (!argv.empty())
1907 {
1908 for (const auto& c : console_command_table)
1909 {
1910 if (argv[0] == c.command)
1911 {
1912 console.WriteLine(c.help);
1913 console.WriteFormatLine("\nUsage: %s", c.usage);
1914 }
1915 }
1916 }
1917 else
1918 {
1919 ConsoleWriteAllCommands(console);
1920 }
1921}
1922
1923static void ConsoleWriteAllCommands(InteractiveConsole& console)
1924{

Callers

nothing calls this directly

Calls 4

ConsoleWriteAllCommandsFunction · 0.85
WriteFormatLineMethod · 0.80
emptyMethod · 0.45
WriteLineMethod · 0.45

Tested by

no test coverage detected