Fixed warnings and updated comments

This commit is contained in:
2024-12-13 19:19:29 -05:00
parent d410220bd0
commit 4be3fae368
2 changed files with 8 additions and 12 deletions

View File

@@ -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;

View File

@@ -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<void (TaskContext)> 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<void (TaskContext)> task) {
// _worldScheduler.Schedule(time, MP_WORLD_TASK_GROUP, [](TaskContext ctx) {
// MpLogger::info(" <<<<< Testing no lambda >>>>>>>");
// return;
// });
}
private:
MpScheduler() {}
~MpScheduler() {}