Imported Upstream version 0.26.0

This commit is contained in:
Bret Curtis 2013-10-17 16:37:22 +02:00
commit 9a2b6c69b6
1398 changed files with 212217 additions and 0 deletions

View file

@ -0,0 +1,39 @@
#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;
}
}