ScummVM API documentation
asIScriptModule Class Referenceabstract
Inheritance diagram for asIScriptModule:
asCModule

Public Member Functions

virtual asIScriptEngineGetEngine () const =0
 
virtual void SetName (const char *name)=0
 
virtual const char * GetName () const =0
 
virtual void Discard ()=0
 
virtual int AddScriptSection (const char *name, const char *code, size_t codeLength=0, int lineOffset=0)=0
 
virtual int Build ()=0
 
virtual int CompileFunction (const char *sectionName, const char *code, int lineOffset, asDWORD compileFlags, asIScriptFunction **outFunc)=0
 
virtual int CompileGlobalVar (const char *sectionName, const char *code, int lineOffset)=0
 
virtual asDWORD SetAccessMask (asDWORD accessMask)=0
 
virtual int SetDefaultNamespace (const char *nameSpace)=0
 
virtual const char * GetDefaultNamespace () const =0
 
virtual asUINT GetFunctionCount () const =0
 
virtual asIScriptFunctionGetFunctionByIndex (asUINT index) const =0
 
virtual asIScriptFunctionGetFunctionByDecl (const char *decl) const =0
 
virtual asIScriptFunctionGetFunctionByName (const char *name) const =0
 
virtual int RemoveFunction (asIScriptFunction *func)=0
 
virtual int ResetGlobalVars (asIScriptContext *ctx=0)=0
 
virtual asUINT GetGlobalVarCount () const =0
 
virtual int GetGlobalVarIndexByName (const char *name) const =0
 
virtual int GetGlobalVarIndexByDecl (const char *decl) const =0
 
virtual const char * GetGlobalVarDeclaration (asUINT index, bool includeNamespace=false) const =0
 
virtual int GetGlobalVar (asUINT index, const char **name, const char **nameSpace=0, int *typeId=0, bool *isConst=0) const =0
 
virtual void * GetAddressOfGlobalVar (asUINT index)=0
 
virtual int RemoveGlobalVar (asUINT index)=0
 
virtual asUINT GetObjectTypeCount () const =0
 
virtual asITypeInfoGetObjectTypeByIndex (asUINT index) const =0
 
virtual int GetTypeIdByDecl (const char *decl) const =0
 
virtual asITypeInfoGetTypeInfoByName (const char *name) const =0
 
virtual asITypeInfoGetTypeInfoByDecl (const char *decl) const =0
 
virtual asUINT GetEnumCount () const =0
 
virtual asITypeInfoGetEnumByIndex (asUINT index) const =0
 
virtual asUINT GetTypedefCount () const =0
 
virtual asITypeInfoGetTypedefByIndex (asUINT index) const =0
 
virtual asUINT GetImportedFunctionCount () const =0
 
virtual int GetImportedFunctionIndexByDecl (const char *decl) const =0
 
virtual const char * GetImportedFunctionDeclaration (asUINT importIndex) const =0
 
virtual const char * GetImportedFunctionSourceModule (asUINT importIndex) const =0
 
virtual int BindImportedFunction (asUINT importIndex, asIScriptFunction *func)=0
 
virtual int UnbindImportedFunction (asUINT importIndex)=0
 
virtual int BindAllImportedFunctions ()=0
 
virtual int UnbindAllImportedFunctions ()=0
 
virtual int SaveByteCode (asIBinaryStream *out, bool stripDebugInfo=false) const =0
 
virtual int LoadByteCode (asIBinaryStream *in, bool *wasDebugInfoStripped=0)=0
 
virtual void * SetUserData (void *data, asPWORD type=0)=0
 
virtual void * GetUserData (asPWORD type=0) const =0
 

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