mirror of
https://github.com/araxiaonline/mod-mythic-plus.git
synced 2026-06-13 03:02:24 -04:00
Fixed warnings and updated comments
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user