1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-05 10:17:46 +00:00
sapphire/src/servers/sapphire_zone/Event/Director.h

70 lines
1.1 KiB
C
Raw Normal View History

2018-01-09 23:50:54 +01:00
#ifndef SAPPHIRE_DIRECTOR_H
#define SAPPHIRE_DIRECTOR_H
#include <common/Common.h>
#include "Forwards.h"
namespace Core {
namespace Event {
/*!
\class Director
\brief Base class for all Directors implements sequence and variables
*/
class Director
{
public:
enum DirectorType
{
InstanceContent = 0x8003, // used for dungeons/raids
CompanyLeve = 0x8007,
QuestBattle = 0x8006,
GatheringLeve = 0x8002,
BattleLeve = 0x8001,
GoldSaucer = 0x800A,
Fate = 0x801A,
DpsChallange = 0x800D
};
Director( DirectorType type, uint16_t contentId );
uint32_t getDirectorId() const;
uint16_t getContentId() const;
DirectorType getType() const;
uint8_t getSequence() const;
uint8_t getBranch() const;
2018-01-09 23:50:54 +01:00
private:
/*! Id of the content of the director */
uint16_t m_contentId;
/*! DirectorType | ContentId */
uint32_t m_directorId;
2018-01-09 23:50:54 +01:00
/*! currect sequence */
uint8_t m_sequence;
/*! current branch */
uint8_t m_branch;
/*! raw storage for flags/vars */
uint8_t m_unionData[10];
/*! type of the director */
DirectorType m_type;
2018-01-09 23:50:54 +01:00
};
}
}
#endif //SAPPHIRE_DIRECTOR_H