mirror of
https://github.com/araxiaonline/mod-mythic-plus.git
synced 2026-06-13 11:12:23 -04:00
Building out data stores. Moved logging to standalone class.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "Log.h"
|
||||
#include "Player.h"
|
||||
#include "MythicPlus.h"
|
||||
#include "Chat.h"
|
||||
#include "Log.h"
|
||||
#include "MapMgr.h"
|
||||
#include "MpLogger.h"
|
||||
#include "MythicPlus.h"
|
||||
#include "Player.h"
|
||||
#include "ScriptMgr.h"
|
||||
|
||||
class MythicPlus_AllMapScript : public AllMapScript
|
||||
{
|
||||
@@ -15,7 +16,7 @@ public:
|
||||
void OnCreateMap(Map* map)
|
||||
{
|
||||
static MythicPlus* mp = MythicPlus::getInstance();
|
||||
mp->debug("AllMapScript::OnCreateMap(): {}", map->GetMapName());
|
||||
MpLogger::debug("AllMapScript::OnCreateMap(): {}", map->GetMapName());
|
||||
|
||||
if (!mp->IsMapEligible(map)) {
|
||||
return;
|
||||
@@ -27,7 +28,7 @@ public:
|
||||
void OnPlayerEnterAll(Map* map, Player* player)
|
||||
{
|
||||
static MythicPlus* mp = MythicPlus::getInstance();
|
||||
mp->debug("AllMapScript::OnPlayerEnterAll(): {}", map->GetMapName());
|
||||
MpLogger::debug("AllMapScript::OnPlayerEnterAll(): {}", map->GetMapName());
|
||||
|
||||
if (!mp->IsMapEligible(map)) {
|
||||
return;
|
||||
@@ -38,7 +39,7 @@ public:
|
||||
void OnPlayerLeaveAll(Map* map, Player* player)
|
||||
{
|
||||
static MythicPlus* mp = MythicPlus::getInstance();
|
||||
mp->debug("AllMapScript::OnPlayerLeaveAll(): {}", map->GetMapName());
|
||||
MpLogger::debug("AllMapScript::OnPlayerLeaveAll(): {}", map->GetMapName());
|
||||
|
||||
if (!mp->IsMapEligible(map)) {
|
||||
return;
|
||||
@@ -50,7 +51,6 @@ public:
|
||||
|
||||
void Add_MP_AllMapScripts()
|
||||
{
|
||||
static MythicPlus* mp = MythicPlus::getInstance();
|
||||
mp->debug("Add_MP_AllMapScripts()");
|
||||
MpLogger::debug("Add_MP_AllMapScripts()");
|
||||
new MythicPlus_AllMapScript();
|
||||
}
|
||||
Reference in New Issue
Block a user