2021-11-27 00:53:57 +01:00
|
|
|
#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 );
|
2021-12-21 01:05:08 +01:00
|
|
|
void onCompleteQuest( Entity::Player& player, uint16_t questId, uint32_t optionalChoice = 0 );
|
2021-11-27 00:53:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
////////////////////
|
|
|
|
|
|
|
|
void sendQuestTracker( Entity::Player& player );
|
|
|
|
|
|
|
|
void sendQuestsInfo( Entity::Player& player );
|
|
|
|
|
2021-12-21 01:05:08 +01:00
|
|
|
bool giveQuestRewards( Entity::Player& player, uint16_t questId, uint32_t optionalChoice );
|
|
|
|
|
2021-11-27 00:53:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|