refactor!: Modify command argument handling and move on_ method to bool_command (#1826)

This commit is contained in:
Andreas Maerten
2023-07-26 22:22:40 +02:00
committed by GitHub
parent f73c1bdc98
commit 96493b5a22
104 changed files with 562 additions and 381 deletions

View File

@ -18,7 +18,7 @@ namespace lua::command
// Call a menu command.
static void call(const std::string& command_name, std::optional<sol::table> _args)
{
const auto args = convert_sequence<uint64_t>(_args.value_or(sol::table()));
big::command_arguments args = convert_sequence<uint64_t>(_args.value_or(sol::table()));
const auto command = big::command::get(rage::joaat(command_name));