Pol  Revision:3cfda13
Pol::Core::ExportScript Class Reference

#include <syshookscript.h>

Public Member Functions

 ExportScript (const Plib::Package *pkg, std::string scriptname)
 
 ExportScript (const ScriptDef &isd)
 
bool call (unsigned PC, Bscript::BObjectImp *p0)
 
bool call (unsigned PC, Bscript::BObjectImp *p0, Bscript::BObjectImp *p1)
 
bool call (unsigned PC, Bscript::BObjectImp *p0, Bscript::BObjectImp *p1, Bscript::BObjectImp *p2)
 
bool call (unsigned PC, Bscript::BObjectImp *p0, Bscript::BObjectImp *p1, Bscript::BObjectImp *p2, Bscript::BObjectImp *p3)
 
Bscript::BObjectImpcall (unsigned PC, Bscript::BObjectImp *p0, std::vector< Bscript::BObjectRef > &pmore)
 
Bscript::BObject call (unsigned PC, Bscript::BObjectImp *p0, Bscript::BObjectImpRefVec &pmore)
 
int call_long (unsigned PC, Bscript::BObjectImp *p0)
 
int call_long (unsigned PC, Bscript::BObjectImp *p0, Bscript::BObjectImp *p1)
 
Bscript::BObject call_object (unsigned PC, Bscript::BObjectImp *p0, Bscript::BObjectImp *p1)
 
Bscript::BObject call_object (unsigned PC, Bscript::BObjectImp *p0, Bscript::BObjectImp *p1, Bscript::BObjectImp *p2)
 
std::string call_string (unsigned PC, Bscript::BObjectImp *p0, Bscript::BObjectImp *p1)
 
std::string call_string (unsigned PC, Bscript::BObjectImp *p0, Bscript::BObjectImp *p1, Bscript::BObjectImp *p2)
 
size_t estimateSize () const
 
bool FindExportedFunction (const std::string &name, unsigned args, unsigned &PC) const
 
bool FindExportedFunction (const char *name, unsigned args, unsigned &PC) const
 
bool Initialize ()
 
void LoadStack (Bscript::BackupStruct &backup)
 
void SaveStack (Bscript::BackupStruct &backup)
 
const std::string & scriptname () const
 

Private Attributes

ScriptDef sd
 
UOExecutor uoexec
 

Friends

class SystemHook
 

Detailed Description

Definition at line 33 of file syshookscript.h.

Constructor & Destructor Documentation

Pol::Core::ExportScript::ExportScript ( const Plib::Package pkg,
std::string  scriptname 
)

Definition at line 26 of file syshookscript.cpp.

Pol::Core::ExportScript::ExportScript ( const ScriptDef isd)

Definition at line 33 of file syshookscript.cpp.

Member Function Documentation

size_t Pol::Core::ExportScript::estimateSize ( ) const
bool Pol::Core::ExportScript::FindExportedFunction ( const std::string &  name,
unsigned  args,
unsigned &  PC 
) const
bool Pol::Core::ExportScript::FindExportedFunction ( const char *  name,
unsigned  args,
unsigned &  PC 
) const

Friends And Related Function Documentation

friend class SystemHook
friend

Definition at line 70 of file syshookscript.h.

Member Data Documentation

ScriptDef Pol::Core::ExportScript::sd
private

Definition at line 73 of file syshookscript.h.

Referenced by estimateSize(), Initialize(), and scriptname().

UOExecutor Pol::Core::ExportScript::uoexec
private

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