MCPcopy Create free account
hub / github.com/The-Powder-Toy/The-Powder-Toy / NextCommand

Method NextCommand

src/gui/console/ConsoleController.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void ConsoleController::NextCommand()
46{
47 size_t cIndex = consoleModel->GetCurrentCommandIndex();
48 if (cIndex < consoleModel->GetPreviousCommands().size())
49 consoleModel->SetCurrentCommandIndex(cIndex+1);
50}
51
52void ConsoleController::PreviousCommand()
53{

Callers 1

DoKeyPressMethod · 0.80

Calls 4

GetPreviousCommandsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected