commit 98b99c865a9f62e8c7f044be52f74cb0df0432ba
parent dd49fee77cf0e9109de6b8b9f087a6be14ac1be1
Author: bsandro <email@bsandro.tech>
Date: Mon, 24 Aug 2026 22:01:53 +0300
commands (autogenerated) registry file rename
Diffstat:
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -18,7 +18,7 @@ all: $(NAME)
.PHONY: clean gen_commands
gen_commands:
- ./commands/gen_registry.sh > ./commands/registry.h
+ ./commands/gen_registry.sh > ./commands/_registry.h
clean:
rm -f $(OBJ) $(NAME)
diff --git a/commands/_registry.h b/commands/_registry.h
@@ -0,0 +1,14 @@
+#pragma once
+/* DO NOT MODIFY! REGENERATED WITH gen_registry.sh */
+#include "core/command.h"
+Command_Func cmd_create_map;
+Command_Func cmd_march;
+Command_Func cmd_spawn_hunter;
+Command_Func cmd_spawn_swordsman;
+static const Command COMMANDS[] = {
+ { "CREATE_MAP", cmd_create_map },
+ { "MARCH", cmd_march },
+ { "SPAWN_HUNTER", cmd_spawn_hunter },
+ { "SPAWN_SWORDSMAN", cmd_spawn_swordsman },
+};
+static const int COMMANDS_COUNT = (sizeof(COMMANDS) / sizeof(Command));
diff --git a/main.c b/main.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <string.h>
#include "core/world.h"
-#include "commands/registry.h"
+#include "commands/_registry.h"
int main(int argc, char **argv) {
World w;