mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-30 05:47:57 +03:00
Imported Upstream version 0.26.0
This commit is contained in:
commit
9a2b6c69b6
1398 changed files with 212217 additions and 0 deletions
39
components/esm/loadgmst.cpp
Normal file
39
components/esm/loadgmst.cpp
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue