Move struct C4ScriptConstDef to C4AulDefFunc.h

epoxy
Günther Brammer 2015-02-01 22:23:19 +01:00
parent 20c22582ec
commit c3c402061b
2 changed files with 8 additions and 17 deletions

View File

@ -22,22 +22,6 @@
#include <C4Value.h>
const int C4SCR_Access_Public = 0,
C4SCR_Access_Protected = 1,
C4SCR_Access_Private = 2;
#define C4SCR_Public "public"
#define C4SCR_Protected "protected"
#define C4SCR_Private "private"
// ** a definition of a script constant
struct C4ScriptConstDef
{
const char *Identifier; // constant name
C4V_Type ValType; // type value
long Data; // raw data
};
// add functions to engine
void InitGameFunctionMap(C4AulScriptEngine *pEngine);
void InitObjectFunctionMap(C4AulScriptEngine *pEngine);

View File

@ -344,11 +344,18 @@ TEMPLATE(10)
#undef CONV_FROM_C4V
#undef TEMPLATE
// a definition of a script constant
struct C4ScriptConstDef
{
const char * Identifier; // constant name
C4V_Type ValType; // type value
long Data; // raw data
};
// a definition of a function exported to script
struct C4ScriptFnDef
{
const char* Identifier; // the name of the func in the script
const char * Identifier; // the name of the func in the script
bool Public;
C4V_Type RetType; // type returned. ignored when C4V
C4V_Type ParType[10];// type of the parameters. error when wrong parameter type.