ScummVM API documentation
HDB::LuaScript Class Reference

Public Member Functions

bool loadLua (const char *name)
 
void saveGlobalNumber (const char *global, double value)
 
void saveGlobalString (const char *global, const char *string)
 
void loadGlobal (const char *global)
 
void purgeGlobals ()
 
void save (Common::OutSaveFile *out)
 
void loadSaveFile (Common::InSaveFile *in)
 
void init ()
 
bool initScript (Common::SeekableReadStream *stream, const char *scriptName, int32 length)
 
void pushInt (int value)
 
void pushString (char *string)
 
void pushFunction (char *func)
 
void call (int args, int returns)
 
bool callFunction (const char *name, int returns)
 
void invokeLuaFunction (char *luaFunc, int x, int y, int value1, int value2)
 
bool executeMPC (Common::SeekableReadStream *stream, const char *name, const char *scriptName, int32 length)
 
bool executeFile (const Common::String &filename)
 
bool executeChunk (Common::String &chunk, const Common::String &chunkName) const
 
void checkParameters (const char *func, int params)
 
const char * getStringOffStack ()
 
void setLuaGlobalValue (const char *name, int value)
 
bool isValid ()
 

Public Attributes

int _cameraXOff
 
int _cameraYOff
 

The documentation for this class was generated from the following file: