|
Pol
Revision:cb584c9
|
#include <syshookscript.h>
Private Attributes | |
| ScriptDef | sd |
| UOExecutor | uoexec |
Friends | |
| class | SystemHook |
Definition at line 33 of file syshookscript.h.
| 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.
| bool Pol::Core::ExportScript::call | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0 | ||
| ) |
Definition at line 208 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Core::ExportedFunction::call().
| bool Pol::Core::ExportScript::call | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| Bscript::BObjectImp * | p1 | ||
| ) |
Definition at line 170 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
| bool Pol::Core::ExportScript::call | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| Bscript::BObjectImp * | p1, | ||
| Bscript::BObjectImp * | p2 | ||
| ) |
Definition at line 131 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
| bool Pol::Core::ExportScript::call | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| Bscript::BObjectImp * | p1, | ||
| Bscript::BObjectImp * | p2, | ||
| Bscript::BObjectImp * | p3 | ||
| ) |
Definition at line 90 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
| BObjectImp * Pol::Core::ExportScript::call | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| std::vector< Bscript::BObjectRef > & | pmore | ||
| ) |
Definition at line 414 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
| BObject Pol::Core::ExportScript::call | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| Bscript::BObjectImpRefVec & | pmore | ||
| ) |
Definition at line 456 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
| int Pol::Core::ExportScript::call_long | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0 | ||
| ) |
Definition at line 321 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), Pol::Bscript::BObjectImp::isa(), LoadStack(), Pol::Bscript::BObjectImp::OTLong, Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, Pol::Bscript::BLong::value(), and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Core::ExportedFunction::call_long().
| int Pol::Core::ExportScript::call_long | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| Bscript::BObjectImp * | p1 | ||
| ) |
Definition at line 367 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), Pol::Bscript::BObjectImp::isa(), LoadStack(), Pol::Bscript::BObjectImp::OTLong, Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, Pol::Bscript::BLong::value(), and Pol::Bscript::Executor::ValueStack.
| BObject Pol::Core::ExportScript::call_object | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| Bscript::BObjectImp * | p1 | ||
| ) |
Definition at line 497 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Core::ExportedFunction::call_object().
| BObject Pol::Core::ExportScript::call_object | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| Bscript::BObjectImp * | p1, | ||
| Bscript::BObjectImp * | p2 | ||
| ) |
Definition at line 535 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
| std::string Pol::Core::ExportScript::call_string | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| Bscript::BObjectImp * | p1 | ||
| ) |
Definition at line 244 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
Referenced by Pol::Core::ExportedFunction::call_string().
| std::string Pol::Core::ExportScript::call_string | ( | unsigned | PC, |
| Bscript::BObjectImp * | p0, | ||
| Bscript::BObjectImp * | p1, | ||
| Bscript::BObjectImp * | p2 | ||
| ) |
Definition at line 282 of file syshookscript.cpp.
References Pol::Bscript::Executor::error(), Pol::Bscript::Executor::exec(), Pol::Bscript::Executor::initForFnCall(), LoadStack(), Pol::Bscript::Executor::pushArg(), SaveStack(), uoexec, and Pol::Bscript::Executor::ValueStack.
| size_t Pol::Core::ExportScript::estimateSize | ( | ) | const |
Definition at line 611 of file syshookscript.cpp.
References Pol::Core::ScriptDef::estimatedSize(), sd, Pol::Core::UOExecutor::sizeEstimate(), and uoexec.
Referenced by Pol::Core::NpcTemplate::estimateSize().
| bool Pol::Core::ExportScript::FindExportedFunction | ( | const std::string & | name, |
| unsigned | args, | ||
| unsigned & | PC | ||
| ) | const |
Definition at line 46 of file syshookscript.cpp.
References Pol::Bscript::EScriptProgram::exported_functions, INFO_PRINT, Pol::Bscript::EPExportedFunction::name, Pol::Bscript::EPExportedFunction::nargs, Pol::Bscript::EPExportedFunction::PC, Pol::Bscript::Executor::prog(), scriptname(), and uoexec.
Referenced by Pol::Core::FindExportedFunction(), and Pol::Core::hook().
| bool Pol::Core::ExportScript::FindExportedFunction | ( | const char * | name, |
| unsigned | args, | ||
| unsigned & | PC | ||
| ) | const |
Definition at line 68 of file syshookscript.cpp.
References Pol::Bscript::EScriptProgram::exported_functions, INFO_PRINT, Pol::Bscript::EPExportedFunction::name, name, Pol::Bscript::EPExportedFunction::nargs, Pol::Bscript::EPExportedFunction::PC, Pol::Bscript::Executor::prog(), scriptname(), and uoexec.
| bool Pol::Core::ExportScript::Initialize | ( | ) |
Definition at line 35 of file syshookscript.cpp.
References Pol::Bscript::BObject::isTrue(), Pol::Core::run_executor_to_completion(), sd, and uoexec.
Referenced by Pol::Core::FindExportScript(), Pol::Items::ItemDesc::ItemDesc(), Pol::Core::load_general_entry(), Pol::Core::load_system_hooks(), and Pol::Core::NpcTemplate::NpcTemplate().
| void Pol::Core::ExportScript::LoadStack | ( | Bscript::BackupStruct & | backup | ) |
Definition at line 593 of file syshookscript.cpp.
References Pol::Bscript::Executor::initForFnCall(), Pol::Bscript::BackupStruct::Locals, Pol::Bscript::Executor::Locals2, Pol::Bscript::BackupStruct::PC, uoexec, Pol::Bscript::BackupStruct::ValueStack, and Pol::Bscript::Executor::ValueStack.
Referenced by call(), call_long(), call_object(), and call_string().
| void Pol::Core::ExportScript::SaveStack | ( | Bscript::BackupStruct & | backup | ) |
Definition at line 573 of file syshookscript.cpp.
References Pol::Bscript::BackupStruct::Locals, Pol::Bscript::Executor::Locals2, Pol::Bscript::BackupStruct::PC, Pol::Bscript::Executor::PC, uoexec, Pol::Bscript::BackupStruct::ValueStack, and Pol::Bscript::Executor::ValueStack.
Referenced by call(), call_long(), call_object(), and call_string().
| const std::string & Pol::Core::ExportScript::scriptname | ( | ) | const |
Definition at line 41 of file syshookscript.cpp.
References Pol::Core::ScriptDef::name(), and sd.
Referenced by FindExportedFunction(), Pol::Core::FindExportedFunction(), Pol::Core::FindExportScript(), Pol::Core::hook(), Pol::Items::ItemDesc::PopulateStruct(), and Pol::Core::ExportedFunction::scriptname().
|
friend |
Definition at line 70 of file syshookscript.h.
|
private |
Definition at line 73 of file syshookscript.h.
Referenced by estimateSize(), Initialize(), and scriptname().
|
private |
Definition at line 74 of file syshookscript.h.
Referenced by call(), call_long(), call_object(), call_string(), estimateSize(), FindExportedFunction(), Initialize(), LoadStack(), and SaveStack().