1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 01:37:47 +00:00
sapphire/src/world/Manager/QuestMgr.h

31 lines
696 B
C++

#pragma once
#include <cstdint>
#include <string>
#include <ForwardsZone.h>
namespace Sapphire::World::Manager
{
class QuestMgr
{
public:
QuestMgr() = default;
/// Perform required actions for events
void onUpdateQuest( Entity::Player& player, uint8_t questIndex );
void onRemoveQuest( Entity::Player& player, uint8_t questIndex );
void onCompleteQuest( Entity::Player& player, uint16_t questId, uint32_t optionalChoice = 0 );
////////////////////
void sendQuestTracker( Entity::Player& player );
void sendQuestsInfo( Entity::Player& player );
bool giveQuestRewards( Entity::Player& player, uint16_t questId, uint32_t optionalChoice );
};
}