sendmap with map config files, script contexts (~sandbox)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1471 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -10,6 +10,7 @@ struct ident
|
||||
int narg; // ID_VAR, ID_COMMAND
|
||||
char *action, *executing; // ID_ALIAS
|
||||
bool persist;
|
||||
int context;
|
||||
};
|
||||
|
||||
enum // function signatures for script functions, see command.cpp
|
||||
@@ -23,6 +24,8 @@ enum // function signatures for script functions, see command.cpp
|
||||
ARG_VARI
|
||||
};
|
||||
|
||||
enum { IEXC_CORE = 0, IEXC_FOREIGN, IEXC_NUM }; // script execution context
|
||||
|
||||
// nasty macros for registering script functions, abuses globals to avoid excessive infrastructure
|
||||
#define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs)
|
||||
#define COMMAND(name, nargs) COMMANDN(name, name, nargs)
|
||||
|
||||
Reference in New Issue
Block a user