OpenMW
Public Member Functions | Public Attributes | Static Public Attributes
ESM::GameSetting Struct Reference

#include <loadgmst.hpp>

List of all members.

Public Member Functions

void load (ESMReader &esm)
int getInt () const
 Throws an exception if GMST is not of type int or float.
float getFloat () const
 Throws an exception if GMST is not of type int or float.
std::string getString () const
 Throwns an exception if GMST is not of type string.
void save (ESMWriter &esm) const
void blank ()
 Set record to default state (does not touch the ID).

Public Attributes

std::string mId
Variant mValue

Static Public Attributes

static unsigned int sRecordId = REC_GMST

Member Function Documentation

Set record to default state (does not touch the ID).

float ESM::GameSetting::getFloat ( ) const

Throws an exception if GMST is not of type int or float.

int ESM::GameSetting::getInt ( ) const

Throws an exception if GMST is not of type int or float.

Todo:
remove the get* functions (redundant, since mValue has equivalent functions now).
std::string ESM::GameSetting::getString ( ) const

Throwns an exception if GMST is not of type string.

void ESM::GameSetting::save ( ESMWriter esm) const

Member Data Documentation

std::string ESM::GameSetting::mId
unsigned int ESM::GameSetting::sRecordId = REC_GMST [static]

The documentation for this struct was generated from the following files: