* This function mask the parameter with CMD_ID_MASK and returns * the name which belongs to the given command. * * @param cmd The integer value of the command * @return The name for this command */
| 130 | * @return The name for this command |
| 131 | */ |
| 132 | std::string_view GetCommandName(Commands cmd) |
| 133 | { |
| 134 | assert(IsValidCommand(cmd)); |
| 135 | |
| 136 | return _command_proc_table[cmd].name; |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * Returns whether the command is allowed while the game is paused. |
no test coverage detected