2018-01-28 13:49:51 +01:00
|
|
|
#ifndef SAPPHIRE_INSTANCECONTENT_H
|
|
|
|
#define SAPPHIRE_INSTANCECONTENT_H
|
|
|
|
|
|
|
|
#include "Zone.h"
|
|
|
|
#include "Forwards.h"
|
2018-01-29 19:40:27 +11:00
|
|
|
#include <common/Exd/ExdDataGenerated.h>
|
2018-01-28 13:49:51 +01:00
|
|
|
|
|
|
|
namespace Core
|
|
|
|
{
|
|
|
|
|
|
|
|
class InstanceContent : public Zone
|
|
|
|
{
|
|
|
|
public:
|
2018-01-28 22:36:43 +01:00
|
|
|
enum InstanceContentState
|
|
|
|
{
|
|
|
|
Created,
|
|
|
|
DutyStarted,
|
|
|
|
DutyFinished
|
|
|
|
};
|
|
|
|
|
2018-01-29 19:40:27 +11:00
|
|
|
InstanceContent( boost::shared_ptr< Core::Data::InstanceContent > pInstanceContent,
|
|
|
|
uint32_t guId,
|
|
|
|
const std::string& internalName,
|
2018-01-29 20:40:32 +11:00
|
|
|
const std::string& placeName,
|
|
|
|
const uint32_t instanceContentId );
|
2018-01-28 13:49:51 +01:00
|
|
|
virtual ~InstanceContent();
|
|
|
|
|
2018-01-29 19:40:27 +11:00
|
|
|
boost::shared_ptr< Core::Data::InstanceContent > getInstanceContentRow() const
|
|
|
|
{
|
|
|
|
return m_instanceContentRow;
|
|
|
|
}
|
|
|
|
|
2018-01-29 20:40:32 +11:00
|
|
|
const uint32_t getInstanceContentId()
|
|
|
|
{
|
|
|
|
return m_instanceContentId;
|
|
|
|
}
|
|
|
|
|
2018-01-28 13:49:51 +01:00
|
|
|
private:
|
2018-01-28 13:52:53 +01:00
|
|
|
Event::DirectorPtr m_pDirector;
|
2018-01-29 19:40:27 +11:00
|
|
|
boost::shared_ptr< Core::Data::InstanceContent > m_instanceContentRow;
|
2018-01-29 20:40:32 +11:00
|
|
|
uint32_t m_instanceContentId;
|
2018-01-28 13:49:51 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif //SAPPHIRE_INSTANCECONTENT_H
|