mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:40:53 +01:00
28 lines
587 B
C++
28 lines
587 B
C++
#pragma once
|
|
|
|
#include <Events/PacketEvent.h>
|
|
#include <Structs/GameId.h>
|
|
|
|
struct World;
|
|
struct UpdateEvent;
|
|
struct RequestQuestUpdate;
|
|
|
|
/**
|
|
* @brief Dispatch quest sync messages.
|
|
*
|
|
* This service is currently not in use.
|
|
*/
|
|
class QuestService
|
|
{
|
|
public:
|
|
QuestService(World& aWorld, entt::dispatcher& aDispatcher);
|
|
|
|
private:
|
|
void OnQuestChanges(const PacketEvent<RequestQuestUpdate>& aChanges) noexcept;
|
|
|
|
World& m_world;
|
|
|
|
entt::scoped_connection m_questUpdateConnection;
|
|
entt::scoped_connection m_updateConnection;
|
|
entt::scoped_connection m_joinConnection;
|
|
};
|