Research portable Memory game | Исследовать портируемую игру Память
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

7 个月前
12345678910111213141516171819202122232425262728293031323334
  1. #include <map>
  2. #include <string>
  3. #include <vector>
  4. #include "cli.h"
  5. #include "cli_Context.h"
  6. #include "memory.h"
  7. #include "memory_Context.h"
  8. #include "shell.h"
  9. // Greet the user
  10. cli_Context cli_greetUser(
  11. cli_Context c
  12. ) {
  13. c.outputGreeting = "OGS Memory Textual UI";
  14. c.recentField = "outputGreeting";
  15. return c;
  16. }
  17. // Show help (aka commands)
  18. cli_Context cli_showHelp(
  19. cli_Context c
  20. ) {
  21. if (
  22. c.input == "h" ||
  23. c.input == "help"
  24. ) {
  25. c.outputHelp = "Commands:\n\te, exit, q, quit\n\t\tExit\n\th, help\n\t\tList commands\n";
  26. c.recentField = "outputHelp";
  27. return c;
  28. }
  29. c.recentField = "none";
  30. return c;
  31. }