mirror of
https://github.com/araxiaonline/mod-mythic-plus.git
synced 2026-06-13 11:12:23 -04:00
Initial commit of skeleton for MythicPlus
This commit is contained in:
47
src/AllMapScript.cpp
Normal file
47
src/AllMapScript.cpp
Normal file
@@ -0,0 +1,47 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "Log.h"
|
||||
#include "Player.h"
|
||||
#include "MythicPlus.h"
|
||||
#include "Chat.h"
|
||||
#include "MapMgr.h"
|
||||
|
||||
class MythicPlus_AllMapScript : public AllMapScript
|
||||
{
|
||||
public:
|
||||
MythicPlus_AllMapScript() : AllMapScript("MythicPlus_AllMapScript")
|
||||
{
|
||||
}
|
||||
|
||||
void OnCreateMap(Map* map)
|
||||
{
|
||||
// LOG_DEBUG("module.MythicPlus", "MythicPlus_AllMapScript::OnCreateMap(): {}", map->GetMapName());
|
||||
|
||||
// if (!map->IsDungeon() && !map->IsRaid())
|
||||
// return;
|
||||
|
||||
}
|
||||
|
||||
void OnPlayerEnterAll(Map* map, Player* player)
|
||||
{
|
||||
// LOG_DEBUG("module.MythicPlus", "MythicPlus_AllMapScript::OnPlayerEnterAll(): {}", map->GetMapName());
|
||||
|
||||
// if (!map->IsDungeon() && !map->IsRaid())
|
||||
// return;
|
||||
|
||||
// if (player->IsGameMaster())
|
||||
// return;
|
||||
}
|
||||
|
||||
void OnPlayerLeaveAll(Map* map, Player* player)
|
||||
{
|
||||
// LOG_DEBUG("module.MythicPlus", "MythicPlus_AllMapScript::OnPlayerLeaveAll(): {}", map->GetMapName());
|
||||
|
||||
// if (!sMythicPlus->EnableGlobal)
|
||||
// return;
|
||||
}
|
||||
};
|
||||
|
||||
void AddAllMapScripts()
|
||||
{
|
||||
new MythicPlus_AllMapScript();
|
||||
}
|
||||
Reference in New Issue
Block a user