From 4be3fae36864a28fd1f0ebab63cfb47d1a15450d Mon Sep 17 00:00:00 2001 From: Ben Carter Date: Fri, 13 Dec 2024 19:19:29 -0500 Subject: [PATCH] Fixed warnings and updated comments --- src/MpDataStore.h | 5 ----- src/MpScheduler.h | 15 ++++++++------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/MpDataStore.h b/src/MpDataStore.h index 0ce7485..925cc0d 100644 --- a/src/MpDataStore.h +++ b/src/MpDataStore.h @@ -99,11 +99,6 @@ struct MpGroupData uint32 GetDeaths(uint32 mapId, uint32 instanceId) const { uint32 deaths = 0; for (const MpPlayerData* player : players) { - - auto mapKey = std::make_pair(mapId, instanceId); - auto instanceData = player->instanceData; - - MpLogger::info(">>>>>>>>>>> Player: {} has {} deaths", player->player->GetName(), player->GetDeaths(mapId, instanceId)); deaths += player->GetDeaths(mapId, instanceId); } return deaths; diff --git a/src/MpScheduler.h b/src/MpScheduler.h index de38882..987f8f4 100644 --- a/src/MpScheduler.h +++ b/src/MpScheduler.h @@ -13,6 +13,14 @@ enum MP_SCHEDULE_GROUP { /** * Global scheduler specifically for handling events fired inside of mythic * scripts + * + * Example usage: + * void ScheduleWorldTask(std::chrono::nanoseconds const& time, std::function task) { + * sMpScheduler.Schedule(time, MP_WORLD_TASK_GROUP, [](TaskContext ctx) { + * // do the things you want for Mp Task Group + * return; + * }); + * } */ class MpScheduler { @@ -30,13 +38,6 @@ public: return _worldScheduler; } - void ScheduleWorldTask(std::chrono::nanoseconds const& time, std::function task) { - // _worldScheduler.Schedule(time, MP_WORLD_TASK_GROUP, [](TaskContext ctx) { - // MpLogger::info(" <<<<< Testing no lambda >>>>>>>"); - // return; - // }); - } - private: MpScheduler() {} ~MpScheduler() {}