forked from Mirrors/openclonk
Move struct C4ScriptConstDef to C4AulDefFunc.h
parent
20c22582ec
commit
c3c402061b
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue