コード例 #1
0
ファイル: ScriptMgr.cpp プロジェクト: ErYayo/mangos-cata
MANGOS_DLL_EXPORT
void ScriptsInit()
{
    nrscripts = GetScriptNames().size();
    for (int i = 0; i < MAX_SCRIPTS; ++i)
        m_scripts[i] = NULL;

    // -- Inicialize the Scripts to be Added --
    AddSC_default();
    // ----------------------------------------
}
コード例 #2
0
ファイル: ScriptMgr.cpp プロジェクト: elitak/noxserver
MANGOS_DLL_EXPORT
void ScriptsInit()
{
    nrscripts = 0;
    for(int i=0;i<MAX_SCRIPTS;i++)
        m_scripts[i]=NULL;

    // -- Inicialize the Scripts to be Added --
    AddSC_default();
    // ----------------------------------------

}
コード例 #3
0
ファイル: ScriptMgr.cpp プロジェクト: lus5d/cwcore
CW_DLL_EXPORT
void ScriptsInit(char const* cfg_file = "cwcore.conf")
{
    num_sc_scripts = 0;
    for(int i=0;i<MAX_SCRIPTS;i++)
        m_scripts[i]=NULL;

    // -- Inicialize the Scripts to be Added --
    AddSC_default();
    // ----------------------------------------

}