mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
fix(Scripts/ShadowLabyrinth): Update Murmur script (#15970)
Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com>
This commit is contained in:
@@ -107,6 +107,11 @@ void TaskScheduler::Dispatch(success_t const& callback)
|
||||
callback();
|
||||
}
|
||||
|
||||
bool TaskScheduler::IsGroupScheduled(group_t const group)
|
||||
{
|
||||
return _task_holder.IsGroupQueued(group);
|
||||
}
|
||||
|
||||
void TaskScheduler::TaskQueue::Push(TaskContainer&& task)
|
||||
{
|
||||
container.insert(task);
|
||||
@@ -159,6 +164,19 @@ void TaskScheduler::TaskQueue::ModifyIf(std::function<bool(TaskContainer const&)
|
||||
container.insert(cache.begin(), cache.end());
|
||||
}
|
||||
|
||||
bool TaskScheduler::TaskQueue::IsGroupQueued(group_t const group)
|
||||
{
|
||||
for (auto const& task : container)
|
||||
{
|
||||
if (task->IsInGroup(group))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TaskScheduler::TaskQueue::IsEmpty() const
|
||||
{
|
||||
return container.empty();
|
||||
|
||||
Reference in New Issue
Block a user