コード例 #1
0
ファイル: ScriptMgr.cpp プロジェクト: tyraela/NetherCore
void ScriptMgr::Initialize()
{
    uint32 oldMSTime = getMSTime();

    LoadDatabase();

    TC_LOG_INFO("server.loading", "Loading C++ scripts");

    FillSpellSummary();
    AddScripts();

    TC_LOG_INFO("server.loading", ">> Loaded %u C++ scripts in %u ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
}
コード例 #2
0
ファイル: ScriptMgr.cpp プロジェクト: KingPin/TrinityCore
void ScriptMgr::Initialize()
{
    uint32 oldMSTime = getMSTime();

    LoadDatabase();

    sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading C++ scripts");

    FillSpellSummary();
    AddScripts();

    sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u C++ scripts in %u ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
}
コード例 #3
0
ファイル: ScriptMgr.cpp プロジェクト: Ramusik/MadboxpcWOW_3.0
void ScriptMgr::Initialize()
{
    uint32 oldMSTime = getMSTime();

    LoadDatabase();

    sLog->outString("Loading C++ scripts");

    FillSpellSummary();
    AddScripts();

    sLog->outString(">> Loaded %u C++ scripts in %u ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
    sLog->outString();
}
コード例 #4
0
void ScriptMgr::Initialize()
{
    LoadDatabase();

    sLog.outString("Loading C++ scripts");
    barGoLink bar(1);
    bar.step();
    sLog.outString();

    FillSpellSummary();
    AddScripts();

    sLog.outString(">> Loaded %u C++ scripts", GetScriptCount());
}
コード例 #5
0
ファイル: ScriptMgr.cpp プロジェクト: Kretol/TrinityCore
void ScriptMgr::Initialize()
{
    uint32 oldMSTime = getMSTime();

    LoadDatabase();
    // Load TeleNPC2 - maybe not the best place to load it ...
    LoadNpcTele();

    TC_LOG_INFO("server.loading", "Loading C++ scripts");

    FillSpellSummary();
    AddScripts();

    TC_LOG_INFO("server.loading", ">> Loaded %u C++ scripts in %u ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
}
コード例 #6
0
ファイル: ScriptMgr.cpp プロジェクト: cristal/TeraCore
void ScriptMgr::Initialize()
{
    uint32 oldMSTime = getMSTime();

    LoadDatabase();
       // Load TeleNPC2 - maybe not the best place to load it ...
       LoadNpcTele();

    sLog->outInfo(LOG_FILTER_SERVER_LOADING, "Loading C++ scripts");

    FillSpellSummary();
    AddScripts();

    sLog->outInfo(LOG_FILTER_SERVER_LOADING, ">> Loaded %u C++ scripts in %u ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
}
コード例 #7
0
ファイル: ScriptMgr.cpp プロジェクト: concept45/Justicar-WoW
void ScriptMgr::Initialize()
{
    uint32 oldMSTime = getMSTime();

    LoadDatabase();

    sLog->outString("Loading C++ scripts");

    FillSpellSummary();
    AddScripts();

    sLog->outString(">> Loaded %u C++ scripts in %u ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
    sLog->outString();

    oldMSTime = getMSTime();
    sLog->outString("Loading custom vendors");
    sLog->outString(">> Loaded %u custom vendor catageory entries in %u ms", CustomVendorMgr.LoadVendors(), GetMSTimeDiffToNow(oldMSTime));
    sLog->outString();
}
コード例 #8
0
void ScriptMgr::Initialize()
{
    uint32 oldMSTime = getMSTime();

    LoadDatabase();

    TC_LOG_INFO("server.loading", "Loading C++ scripts");

    FillSpellSummary();
    AddScripts();

#ifdef SCRIPTS
    for (std::string const& scriptName : UnusedScriptNames)
    {
        TC_LOG_ERROR("sql.sql", "ScriptName '%s' exists in database, but no core script found!", scriptName.c_str());
    }
#endif

    UnloadUnusedScripts();

    TC_LOG_INFO("server.loading", ">> Loaded %u C++ scripts in %u ms", GetScriptCount(), GetMSTimeDiffToNow(oldMSTime));
}