[Tasks] Add method to filter shared task offers (#2497)

This commit is contained in:
hg
2022-10-29 16:38:04 -04:00
committed by GitHub
parent 7abb02655d
commit 5708164511
2 changed files with 38 additions and 10 deletions
+2 -1
View File
@@ -11,8 +11,8 @@
#include <algorithm>
class Client;
class Mob;
class SharedTaskRequest;
class TaskManager {
@@ -81,6 +81,7 @@ private:
void SendActiveTaskToClient(ClientTaskInformation *task, Client *client, int task_index, bool task_complete);
// shared tasks
bool CanOfferSharedTask(int task_id, const SharedTaskRequest& request);
void SyncClientSharedTaskWithPersistedState(Client *c, ClientTaskState *cts);
void SyncClientSharedTaskRemoveLocalIfNotExists(Client *c, ClientTaskState *cts);
void SendSharedTaskSelector(Client* client, Mob* mob, const std::vector<int>& tasks);