summaryrefslogtreecommitdiff
path: root/inc/commands.h
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-11 02:00:20 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-11 02:00:20 +0100
commitc2e349569fcf796412b376db89304a19648f18b8 (patch)
treeaeb29720d99f7f42dd2def606ed87193f0ca3d8c /inc/commands.h
parentcb4a7637943d407187184b28d602b750c9547fa5 (diff)
added argument parser and run function
Diffstat (limited to 'inc/commands.h')
-rw-r--r--inc/commands.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/commands.h b/inc/commands.h
index 654d8b7..9761151 100644
--- a/inc/commands.h
+++ b/inc/commands.h
@@ -3,6 +3,15 @@
#include "demo.h"
+typedef struct
+{
+ char cmdtype;
+ char settype;
+ int id;
+ char from[24];
+ char to[24];
+} cmdinput;
+
int setnamebyid(int id, char *newname, demo *demo);
int setnamebyname(char *oldname, char *newname, demo *demo);
@@ -14,4 +23,6 @@ int setskinbyname(char *name, char *skin, demo *demo);
/* Will fail if mapname >= 31, or map is not a teeworlds datafile */
int changemap(FILE *map, char *mapname, demo *demo);
+void runcommand(cmdinput *cmd, demo *demo);
+
#endif // COMMANDS_H