AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Module Namespace Reference

Functions

AC_COMMON_API void SetEnableModulesList (std::string_view modulesList)
 
AC_COMMON_API std::vector< std::string_view > GetEnableModulesList ()
 

Function Documentation

◆ GetEnableModulesList()

std::vector< std::string_view > Acore::Module::GetEnableModulesList ( )
32{
33 std::vector<std::string_view> _list;
34
35 for (auto const& modName : Acore::Tokenize(_modulesList, ',', false))
36 {
37 _list.emplace_back(modName);
38 }
39
40 return _list;
41}
std::vector< std::string_view > Tokenize(std::string_view str, char sep, bool keepEmpty)
Definition: Tokenize.cpp:20
std::string_view _modulesList
Definition: ModuleMgr.cpp:23

References anonymous_namespace{ModuleMgr.cpp}::_modulesList, and Acore::Tokenize().

Referenced by server_commandscript::HandleServerDebugCommand().

◆ SetEnableModulesList()

void Acore::Module::SetEnableModulesList ( std::string_view  modulesList)
27{
28 _modulesList = modulesList;
29}

References anonymous_namespace{ModuleMgr.cpp}::_modulesList.

Referenced by main().