Pol
Revision:cb584c9
|
Classes | |
class | Account |
class | AccountObjImp |
class | AccountPtrHolder |
Functions | |
Account * | create_new_account (const std::string &acctname, const std::string &password, bool enabled) |
int | delete_account (const char *acctname) |
Account * | duplicate_account (const std::string &oldacctname, const std::string &newacctname) |
Account * | find_account (const char *acctname) |
void | read_account_data () |
void | reload_account_data (void) |
void | reread_account (Clib::ConfigElem &elem) |
void | write_account_data () |
void | write_account_data_task (void) |
Variables | |
Bscript::BApplicObjType | accountobjimp_type |
Account * Pol::Accounts::create_new_account | ( | const std::string & | acctname, |
const std::string & | password, | ||
bool | enabled | ||
) |
Definition at line 109 of file accounts.cpp.
References Pol::Core::GameState::accounts, Pol::Plib::SystemState::accounts_txt_dirty, Pol::Clib::ConfigElem::add_prop(), find_account(), Pol::Core::gamestate, passert, Pol::Plib::systemstate, and write_account_data().
Referenced by Pol::Module::UOExecutorModule::mf_CreateAccount().
int Pol::Accounts::delete_account | ( | const char * | acctname | ) |
Definition at line 163 of file accounts.cpp.
References Pol::Core::GameState::accounts, Pol::Plib::SystemState::accounts_txt_dirty, Pol::Core::gamestate, Pol::Accounts::Account::name(), Pol::Accounts::Account::numchars(), Pol::Plib::systemstate, and write_account_data().
Referenced by Pol::Accounts::AccountObjImp::call_method_id().
Account * Pol::Accounts::duplicate_account | ( | const std::string & | oldacctname, |
const std::string & | newacctname | ||
) |
Definition at line 128 of file accounts.cpp.
References Pol::Core::GameState::accounts, Pol::Plib::SystemState::accounts_txt_dirty, Pol::Clib::ConfigElem::add_prop(), find_account(), Pol::Core::gamestate, passert, Pol::Clib::ConfigElem::remove_string(), Pol::Plib::systemstate, write_account_data(), and Pol::Accounts::Account::writeto().
Referenced by Pol::Accounts::AccountObjImp::call_method_id().
Account * Pol::Accounts::find_account | ( | const char * | acctname | ) |
Definition at line 151 of file accounts.cpp.
References Pol::Core::gamestate.
Referenced by Pol::Accounts::AccountObjImp::call_method_id(), create_new_account(), duplicate_account(), Pol::Core::login2(), Pol::Core::loginserver_login(), Pol::Module::UOExecutorModule::mf_CreateAccount(), Pol::Module::UOExecutorModule::mf_FindAccount(), Pol::Mobile::Character::readCommonProperties(), and reread_account().
void Pol::Accounts::read_account_data | ( | ) |
Definition at line 36 of file accounts.cpp.
References Pol::Core::GameState::accounts, Pol::Plib::SystemState::accounts_txt_stat, Pol::Plib::SystemState::config, Pol::Tools::Timer< printer >::ellapsed(), Pol::Core::gamestate, INFO_PRINT, Pol::Clib::ConfigFile::read(), Pol::Plib::systemstate, Pol::Core::PolConfig::world_data_path, and write_account_data().
Referenced by Pol::xmain_inner().
void Pol::Accounts::reload_account_data | ( | void | ) |
Definition at line 202 of file accounts.cpp.
References Pol::Plib::SystemState::accounts_txt_stat, Pol::Plib::SystemState::config, INFO_PRINT, Pol::Clib::ConfigFile::read(), reread_account(), Pol::Plib::systemstate, THREAD_CHECKPOINT, Pol::Core::PolConfig::world_data_path, and write_account_data().
void Pol::Accounts::reread_account | ( | Clib::ConfigElem & | elem | ) |
Definition at line 187 of file accounts.cpp.
References Pol::Core::GameState::accounts, Pol::Clib::ConfigElem::add_prop(), find_account(), Pol::Core::gamestate, name, Pol::Accounts::Account::readfrom(), and Pol::Clib::ConfigElem::remove_string().
Referenced by reload_account_data().
void Pol::Accounts::write_account_data | ( | ) |
Definition at line 71 of file accounts.cpp.
References Pol::Plib::SystemState::accounts_txt_dirty, Pol::Plib::SystemState::config, Pol::Clib::force_backtrace(), Pol::Core::gamestate, POLLOG_ERROR, Pol::Plib::systemstate, Pol::Core::PolConfig::world_data_path, and Pol::Accounts::Account::writeto().
Referenced by Pol::Accounts::AccountObjImp::call_method_id(), create_new_account(), delete_account(), duplicate_account(), read_account_data(), reload_account_data(), write_account_data_task(), and Pol::Core::write_data().
void Pol::Accounts::write_account_data_task | ( | void | ) |
Definition at line 240 of file accounts.cpp.
References Pol::Plib::systemstate, and write_account_data().
Bscript::BApplicObjType Pol::Accounts::accountobjimp_type |
Definition at line 56 of file acscrobj.cpp.