mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-22 22:19:08 +00:00
Codechange: Let the compile generate the master command table out of templated command traits.
This is using a non-intrusive type-traits like templated system, which allows compile-time validation that the command table and the command enum match up.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "core/random_func.hpp"
|
||||
#include "newgrf_generic.h"
|
||||
#include "date_func.h"
|
||||
#include "tree_cmd.h"
|
||||
|
||||
#include "table/strings.h"
|
||||
#include "table/tree_land.h"
|
||||
|
Reference in New Issue
Block a user