openmw-tes3coop/apps/opencs/model/world/record.cpp

46 lines
766 B
C++
Raw Normal View History

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
}
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;
}