Fix command callback generation

This commit is contained in:
dP
2024-04-23 01:22:39 +07:00
parent dc9e1d54b5
commit 28919c1cc0
4 changed files with 17 additions and 11 deletions

View File

@@ -10,6 +10,7 @@
#include "../../station_cmd.h"
#include "../../town_cmd.h"
#include "../../tunnelbridge_cmd.h"
#include "../../script/script_cmd.h"
namespace citymania {
namespace cmd {
@@ -42,7 +43,9 @@ static constexpr auto _callback_tuple = std::make_tuple(
&CcBuildIndustry,
&CcBuildBridge,
&CcCreateGroup,
&CcAddVehicleNewGroup
&CcAddVehicleNewGroup,
&CcAI,
&CcGame
);
inline constexpr size_t _callback_tuple_size = std::tuple_size_v<decltype(_callback_tuple)>;

View File

@@ -41,6 +41,7 @@
#include "../../engine_cmd.h"
#include "../../tunnelbridge_cmd.h"
#include "../../group_cmd.h"
#include "../../script_cmd.h"
namespace citymania {
namespace cmd {