mirror of
https://github.com/thug1src/thug.git
synced 2025-01-22 05:43:47 +00:00
32 lines
677 B
C
32 lines
677 B
C
|
#ifndef __SCRIPTING_INIT_H
|
||
|
#define __SCRIPTING_INIT_H
|
||
|
|
||
|
#ifndef __CORE_DEFINES_H
|
||
|
#include <core/defines.h>
|
||
|
#endif
|
||
|
|
||
|
namespace Script
|
||
|
{
|
||
|
|
||
|
enum
|
||
|
{
|
||
|
MAX_CSCRIPTS=300, // If this changes, the script debugger (qdebug.exe) will need to be rebuilt.
|
||
|
};
|
||
|
|
||
|
class CStruct;
|
||
|
class CScript;
|
||
|
struct SCFunction
|
||
|
{
|
||
|
const char *mpName;
|
||
|
bool (*mpFunction)(Script::CStruct *, Script::CScript *);
|
||
|
};
|
||
|
|
||
|
void AllocatePools();
|
||
|
void DeallocatePools();
|
||
|
void RegisterCFunctions(SCFunction *p_cFunctions, uint32 numFunctions);
|
||
|
void RegisterMemberFunctions(const char **pp_memberFunctions, uint32 numFunctions);
|
||
|
|
||
|
} // namespace Script
|
||
|
|
||
|
#endif // #ifndef __SCRIPTING_INIT_H
|