1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 22:19:54 +00:00
openmw-tes3mp/components/esm/loadgmst.cpp
2013-03-05 08:02:27 +01:00

39 lines
741 B
C++

#include "loadgmst.hpp"
namespace ESM
{
void GameSetting::load (ESMReader &esm)
{
mValue.read (esm, ESM::Variant::Format_Gmst);
}
void GameSetting::save (ESMWriter &esm)
{
mValue.write (esm, ESM::Variant::Format_Gmst);
}
int GameSetting::getInt() const
{
return mValue.getInteger();
}
float GameSetting::getFloat() const
{
return mValue.getFloat();
}
std::string GameSetting::getString() const
{
return mValue.getString();
}
void GameSetting::blank()
{
mValue.setType (ESM::VT_None);
}
bool operator== (const GameSetting& left, const GameSetting& right)
{
return left.mValue==right.mValue;
}
}