mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
Minor cleanup of InstanceContent class
This commit is contained in:
parent
88f8eb2cb5
commit
8afe739aaf
2 changed files with 23 additions and 17 deletions
|
@ -3,11 +3,12 @@
|
|||
Core::InstanceContent::InstanceContent( boost::shared_ptr< Core::Data::InstanceContent > pInstanceContent,
|
||||
uint32_t guId,
|
||||
const std::string& internalName,
|
||||
const std::string& placeName,
|
||||
const uint32_t instanceContentId )
|
||||
: Zone( pInstanceContent->territoryType, guId, internalName, placeName ),
|
||||
m_instanceContentRow( pInstanceContent ),
|
||||
m_instanceContentId( instanceContentId )
|
||||
const std::string& contentName,
|
||||
uint32_t instanceContentId )
|
||||
: Zone( pInstanceContent->territoryType, guId, internalName, contentName ),
|
||||
m_instanceContentInfo( pInstanceContent ),
|
||||
m_instanceContentId( instanceContentId ),
|
||||
m_state( Created )
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -15,4 +16,14 @@ Core::InstanceContent::InstanceContent( boost::shared_ptr< Core::Data::InstanceC
|
|||
Core::InstanceContent::~InstanceContent()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t Core::InstanceContent::getInstanceContentId() const
|
||||
{
|
||||
return m_instanceContentId;
|
||||
}
|
||||
|
||||
boost::shared_ptr< Core::Data::InstanceContent > Core::InstanceContent::getInstanceContentInfo() const
|
||||
{
|
||||
return m_instanceContentInfo;
|
||||
}
|
||||
|
|
|
@ -21,24 +21,19 @@ public:
|
|||
InstanceContent( boost::shared_ptr< Core::Data::InstanceContent > pInstanceContent,
|
||||
uint32_t guId,
|
||||
const std::string& internalName,
|
||||
const std::string& placeName,
|
||||
const uint32_t instanceContentId );
|
||||
const std::string& contentName,
|
||||
uint32_t instanceContentId );
|
||||
virtual ~InstanceContent();
|
||||
|
||||
boost::shared_ptr< Core::Data::InstanceContent > getInstanceContentRow() const
|
||||
{
|
||||
return m_instanceContentRow;
|
||||
}
|
||||
boost::shared_ptr< Core::Data::InstanceContent > getInstanceContentInfo() const;
|
||||
|
||||
const uint32_t getInstanceContentId()
|
||||
{
|
||||
return m_instanceContentId;
|
||||
}
|
||||
uint32_t getInstanceContentId() const;
|
||||
|
||||
private:
|
||||
Event::DirectorPtr m_pDirector;
|
||||
boost::shared_ptr< Core::Data::InstanceContent > m_instanceContentRow;
|
||||
boost::shared_ptr< Core::Data::InstanceContent > m_instanceContentInfo;
|
||||
uint32_t m_instanceContentId;
|
||||
InstanceContentState m_state;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue