2012-12-06 13:56:04 +00:00
|
|
|
|
|
|
|
#include "record.hpp"
|
|
|
|
|
|
|
|
CSMWorld::RecordBase::~RecordBase() {}
|
|
|
|
|
2013-02-12 12:57:16 +00:00
|
|
|
bool CSMWorld::RecordBase::isDeleted() const
|
2012-12-06 13:56:04 +00:00
|
|
|
{
|
|
|
|
return mState==State_Deleted || mState==State_Erased;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-02-12 12:57:16 +00:00
|
|
|
bool CSMWorld::RecordBase::isErased() const
|
2012-12-06 13:56:04 +00:00
|
|
|
{
|
|
|
|
return mState==State_Erased;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-02-12 12:57:16 +00:00
|
|
|
bool CSMWorld::RecordBase::isModified() const
|
2012-12-06 13:56:04 +00:00
|
|
|
{
|
|
|
|
return mState==State_Modified || mState==State_ModifiedOnly;
|
2015-03-11 14:54:45 +00:00
|
|
|
}
|
2015-07-18 12:55:24 +00:00
|
|
|
|
|
|
|
template<>
|
|
|
|
bool CSMWorld::isRecordDeleted(const CSMWorld::Land &land)
|
|
|
|
{
|
|
|
|
return land.mLand->mIsDeleted;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<>
|
|
|
|
bool CSMWorld::isRecordDeleted(const ESM::GameSetting &setting)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<>
|
|
|
|
bool CSMWorld::isRecordDeleted(const ESM::MagicEffect &effect)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<>
|
|
|
|
bool CSMWorld::isRecordDeleted(const ESM::Skill &skill)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|