ScummVM API documentation
hpl::cSqScript Class Reference
Inheritance diagram for hpl::cSqScript:
hpl::iScript hpl::iResourceBase

Public Member Functions

 cSqScript (const tString &asName, asIScriptEngine *apScriptEngine, int alHandle)
 
bool CreateFromFile (const tString &asFileName)
 
int GetFuncHandle (const tString &asFunc)
 
void AddArg (const tString &asArg)
 
bool Run (const tString &asFuncLine)
 
bool Run (int alHandle)
 
- Public Member Functions inherited from hpl::iScript
 iScript (const tString &asName)
 
bool reload ()
 
void unload ()
 
void destroy ()
 
- Public Member Functions inherited from hpl::iResourceBase
 iResourceBase (tString asName, unsigned long alPrio)
 
tString GetName ()
 
unsigned long GetHandle ()
 
void SetHandle (unsigned long alHandle)
 
tString GetFilePath ()
 
unsigned long GetTime ()
 
unsigned long GetPrio ()
 
unsigned long GetSize ()
 
void SetLogDestruction (bool abX)
 
unsigned int GetUserCount ()
 
void IncUserCount ()
 
void DecUserCount ()
 
bool HasUsers ()
 

Additional Inherited Members

- Static Public Member Functions inherited from hpl::iResourceBase
static bool GetLogCreateAndDelete ()
 
static void SetLogCreateAndDelete (bool abX)
 
- Protected Attributes inherited from hpl::iResourceBase
unsigned int mlPrio
 
unsigned long mlTime
 
unsigned long mlSize
 
unsigned int mlUserCount
 
unsigned long mlHandle
 
tString msName
 
tString msFilePath
 
bool mbLogDestruction
 
- Static Protected Attributes inherited from hpl::iResourceBase
static bool mbLogCreateAndDelete
 

Member Function Documentation

◆ Run()

bool hpl::cSqScript::Run ( const tString asFuncLine)
virtual

Runs a func in the script, for example "test(15)"

Parameters
asFuncLinethe line of code
Returns
true if everything was ok, else false

Implements hpl::iScript.


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