|
Pol
Revision:cb584c9
|
#include <scrdef.h>
Public Member Functions | |
| ScriptDef () | |
| ScriptDef (const std::string &name, const Plib::Package *pkg, const char *mainpfx) | |
| ScriptDef (const std::string &name, const Plib::Package *pkg) | |
| const char * | c_str () const |
| void | clear () |
| void | config (const std::string &name, const Plib::Package *pkg, const char *mainpfx, bool warn_if_not_found=true) |
| void | config (const std::string &name, const Plib::Package *pkg) |
| bool | config_nodie (const std::string &name, const Plib::Package *pkg, const char *mainpfx) |
| bool | empty () const |
| size_t | estimatedSize () const |
| bool | exists () const |
| const std::string & | name () const |
| bool | operator!= (const ScriptDef &other) const |
| bool | operator== (const ScriptDef &other) const |
| const Plib::Package * | pkg () const |
| void | quickconfig (const Plib::Package *pkg, const std::string &name_ecl) |
| void | quickconfig (const std::string &name_ecl) |
| std::string | relativename (const Plib::Package *pkg=nullptr) const |
Private Attributes | |
| boost_utils::script_name_flystring | localname_ |
| boost_utils::script_name_flystring | name_ |
| const Plib::Package * | pkg_ |
|
inline |
Definition at line 26 of file scrdef.h.
References name, operator!=(), and operator==().
Referenced by estimatedSize().
| Pol::Core::ScriptDef::ScriptDef | ( | const std::string & | name, |
| const Plib::Package * | pkg, | ||
| const char * | mainpfx | ||
| ) |
Definition at line 33 of file scrdef.cpp.
References config().
| Pol::Core::ScriptDef::ScriptDef | ( | const std::string & | name, |
| const Plib::Package * | pkg | ||
| ) |
Definition at line 38 of file scrdef.cpp.
References config().
|
inline |
Definition at line 42 of file scrdef.h.
Referenced by exists(), Pol::Core::find_script2(), Pol::Module::OSExecutorModule::start_skill_script(), and Pol::Core::StartSkillScript().
| void Pol::Core::ScriptDef::clear | ( | ) |
Definition at line 133 of file scrdef.cpp.
References localname_, name_, and pkg_.
Referenced by Pol::Items::UWeapon::set_hit_script(), and Pol::Items::UArmor::set_onhitscript().
| void Pol::Core::ScriptDef::config | ( | const std::string & | name, |
| const Plib::Package * | pkg, | ||
| const char * | mainpfx, | ||
| bool | warn_if_not_found = true |
||
| ) |
Definition at line 55 of file scrdef.cpp.
References empty(), ERROR_PRINT, exists(), Pol::Core::full_scriptname(), localname_, name_, pkg_, and Pol::Plib::pkgdef_split().
Referenced by config(), Pol::Items::Item::run_equip_script(), Pol::Items::Item::run_unequip_script(), ScriptDef(), Pol::Items::UWeapon::set_hit_script(), and Pol::Items::UArmor::set_onhitscript().
| void Pol::Core::ScriptDef::config | ( | const std::string & | name, |
| const Plib::Package * | pkg | ||
| ) |
Definition at line 79 of file scrdef.cpp.
References config().
| bool Pol::Core::ScriptDef::config_nodie | ( | const std::string & | name, |
| const Plib::Package * | pkg, | ||
| const char * | mainpfx | ||
| ) |
Definition at line 84 of file scrdef.cpp.
References ERROR_PRINT, Pol::Core::full_scriptname(), localname_, name_, pkg_, and Pol::Plib::pkgdef_split().
Referenced by Pol::Core::DebugContext::cmd_call(), Pol::Core::DebugContext::cmd_start(), Pol::Multi::CustomHousesCommit(), Pol::Module::OSExecutorModule::mf_OpenConnection(), Pol::Module::OSExecutorModule::run_script(), Pol::Module::OSExecutorModule::run_script_to_completion(), Pol::Core::JusticeRegion::RunEnterScript(), Pol::Core::JusticeRegion::RunLeaveScript(), Pol::Module::OSExecutorModule::start_script(), and Pol::Module::OSExecutorModule::start_skill_script().
|
inline |
Definition at line 41 of file scrdef.h.
Referenced by Pol::Module::_create_item_in_container(), Pol::Mobile::Character::attack(), Pol::Core::UContainer::can_insert_add_item(), Pol::Core::UContainer::can_insert_increase_stack(), Pol::Core::USpell::cast(), Pol::Core::UContainer::check_can_remove_script(), config(), Pol::Core::decay_worldzone(), Pol::Items::Item::double_click(), exists(), Pol::Core::find_walkon_item(), Pol::Core::handle_use_skill(), Pol::Module::UOExecutorModule::mf_UseItem(), Pol::Core::UContainer::on_insert_add_item(), Pol::Core::UContainer::on_insert_increase_stack(), Pol::Core::UContainer::on_remove(), operator==(), Pol::Module::OSExecutorModule::start_skill_script(), Pol::Items::Item::walk_on(), and Pol::Multi::UHouse::walk_on().
| size_t Pol::Core::ScriptDef::estimatedSize | ( | ) | const |
Definition at line 140 of file scrdef.cpp.
References ScriptDef().
Referenced by Pol::Items::ArmorDesc::estimatedSize(), Pol::Items::WeaponDesc::estimatedSize(), Pol::Items::UArmor::estimatedSize(), Pol::Items::ItemDesc::estimatedSize(), Pol::Items::UWeapon::estimatedSize(), Pol::Items::ContainerDesc::estimatedSize(), Pol::Mobile::Attribute::estimateSize(), Pol::Core::ExportScript::estimateSize(), Pol::Core::USpell::estimateSize(), and Pol::Network::AuxService::estimateSize().
| bool Pol::Core::ScriptDef::exists | ( | ) | const |
Definition at line 126 of file scrdef.cpp.
References c_str(), empty(), and Pol::Clib::FileExists().
Referenced by Pol::Core::call_chr_scripts(), Pol::Core::can_delete_character(), Pol::Core::client_io_thread(), Pol::Core::DebugContext::cmd_call(), Pol::Core::DebugContext::cmd_start(), config(), Pol::Multi::CustomHousesCommit(), Pol::Core::doubleclick(), Pol::Module::OSExecutorModule::mf_OpenConnection(), Pol::Items::preload_test_scripts(), Pol::Module::OSExecutorModule::run_script(), Pol::Module::OSExecutorModule::run_script_to_completion(), Pol::Core::JusticeRegion::RunEnterScript(), Pol::Core::JusticeRegion::RunLeaveScript(), Pol::Core::skillrequest(), Pol::Core::start_http_script(), Pol::Module::OSExecutorModule::start_script(), Pol::Module::OSExecutorModule::start_skill_script(), and Pol::Core::start_textcmd_script().
|
inline |
Definition at line 45 of file scrdef.h.
Referenced by Pol::Core::DebugContext::cmd_call(), Pol::Core::DebugContext::cmd_start(), Pol::Core::find_script2(), Pol::Core::FindExportedFunction(), Pol::Core::FindExportScript(), Pol::Module::OSExecutorModule::mf_OpenConnection(), Pol::Core::run_executor_to_completion(), Pol::Mobile::Character::run_hit_script(), Pol::Module::OSExecutorModule::run_script(), Pol::Core::script_loaded(), Pol::Core::ExportScript::scriptname(), Pol::Core::start_http_script(), Pol::Module::OSExecutorModule::start_script(), Pol::Core::start_script(), and Pol::Module::OSExecutorModule::start_skill_script().
| bool Pol::Core::ScriptDef::operator!= | ( | const ScriptDef & | other | ) | const |
Definition at line 50 of file scrdef.cpp.
| bool Pol::Core::ScriptDef::operator== | ( | const ScriptDef & | other | ) | const |
Definition at line 43 of file scrdef.cpp.
|
inline |
Definition at line 46 of file scrdef.h.
Referenced by Pol::Core::find_script2(), and quickconfig().
| void Pol::Core::ScriptDef::quickconfig | ( | const Plib::Package * | pkg, |
| const std::string & | name_ecl | ||
| ) |
Definition at line 112 of file scrdef.cpp.
References Pol::Plib::Package::dir(), localname_, name_, pkg(), and pkg_.
Referenced by Pol::Core::call_chr_scripts(), Pol::Core::can_delete_character(), Pol::Items::Item::check_test_scripts(), Pol::Core::client_io_thread(), Pol::Core::doubleclick(), Pol::Core::ConsoleCommand::exec_console_cmd(), Pol::Core::get_script_page_filename(), Pol::Items::preload_test_scripts(), Pol::Core::skillrequest(), Pol::Core::start_http_script(), and Pol::Core::start_textcmd_script().
| void Pol::Core::ScriptDef::quickconfig | ( | const std::string & | name_ecl | ) |
Definition at line 119 of file scrdef.cpp.
References localname_, name_, and pkg_.
| std::string Pol::Core::ScriptDef::relativename | ( | const Plib::Package * | pkg = nullptr | ) | const |
Definition at line 102 of file scrdef.cpp.
References localname_, Pol::Plib::Package::name(), name_, and pkg_.
Referenced by Pol::Items::ArmorDesc::PopulateStruct(), Pol::Items::WeaponDesc::PopulateStruct(), Pol::Items::ItemDesc::PopulateStruct(), Pol::Items::ContainerDesc::PopulateStruct(), Pol::Items::UArmor::printProperties(), Pol::Items::UWeapon::printProperties(), and Pol::Network::AuxService::run().
|
private |
Definition at line 53 of file scrdef.h.
Referenced by clear(), config(), config_nodie(), quickconfig(), and relativename().
|
private |
Definition at line 54 of file scrdef.h.
Referenced by clear(), config(), config_nodie(), operator==(), quickconfig(), and relativename().
|
private |
Definition at line 55 of file scrdef.h.
Referenced by clear(), config(), config_nodie(), operator==(), quickconfig(), and relativename().