class CScriptableBase;
ScriptHelpers.h
Classes that want to register functions to the script must derive from this interface.
int m_nParamIdOffset;
IScriptTable * m_pMethodsTable;
IScriptSystem * m_pSS;
char m_sGlobalName[64];
virtual ~CScriptableBase();
CScriptableBase();
virtual void Done();
virtual void GetMemoryStatistics(ICrySizer * pSizer);
IScriptTable * GetMethodsTable();
virtual void Init(IScriptSystem * pSS, ISystem * pSystem, int nParamIdOffset = 0);
void RegisterFunction(const char * sFuncName, IScriptTable::FunctionFunctor function);
void RegisterGlobal(const char * sName, float fValue);
void RegisterGlobal(const char * sName, int nValue);
[K01]: disabled int version since it is overloaded with float and isn't compiled under GCC for enum types
template <typename Callee, typename Func> void RegisterTemplateFunction(const char * sFuncName, const char * sFuncParams, Callee& callee, const Func & func);
void SetGlobalName(const char * sGlobalName);
friend class CScriptBind_GameStatistics;