37 #ifndef __MO_SCRIPT_H__
38 #define __MO_SCRIPT_H__
54 Function Functions[255];
83 bool CompileFile(
const char *strFilename);
90 bool CompileBuffer(
unsigned char *pbBuffer,
size_t szLen);
98 int RegisterFunction(
const char *strFuncName);
107 int RegisterBaseFunction (
const char *strFuncName);
116 bool SelectScriptFunction(
const char *strFuncName);
121 void AddFunctionParam(
int iInt);
126 void AddFunctionParam(
float fFloat);
131 void AddFunctionParam(
char *
string);
139 bool RunSelectedFunction(
int nReturns = 0);
146 bool ScriptHasFunction(
const char *strScriptName);
173 m_iMethodBaseIterator = m_iMethodBaseAncestors-1;
174 m_iMethodBase = m_MethodBases[m_iMethodBaseIterator--];
175 return m_iMethodBase;
179 if (m_iMethodBaseIterator>=0) m_iMethodBase = m_MethodBases[m_iMethodBaseIterator--];
180 return m_iMethodBase;
210 int m_MethodBases[256];
virtual int NextScriptCalling()
int(* Function)(moLuaVirtualMachine &vm)
static moLuaDebugger m_dbg
virtual int ResetScriptCalling()
const char * m_strFunctionName
int m_iMethodBaseIterator
actual class index method base
static moLuaVirtualMachine m_vm
int m_iMethodBaseAncestors
actual class iterator index method base
moLuaVirtualMachine & mvm(void)