1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00
OpenMW/components/esm/loadglob.hpp

42 lines
701 B
C++
Raw Normal View History

2012-09-23 22:11:08 +04:00
#ifndef OPENMW_ESM_GLOB_H
#define OPENMW_ESM_GLOB_H
#include <string>
2013-03-04 13:59:06 +01:00
#include "variant.hpp"
namespace ESM
{
2012-10-01 00:51:54 +04:00
class ESMReader;
class ESMWriter;
/*
* Global script variables
*/
struct Global
{
static unsigned int sRecordId;
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
static std::string getRecordType() { return "Global"; }
std::string mId;
Variant mValue;
bool mIsDeleted;
Global();
void load(ESMReader &esm);
void save(ESMWriter &esm) const;
2012-12-03 22:16:02 +01:00
void blank();
///< Set record to default state (does not touch the ID).
};
bool operator== (const Global& left, const Global& right);
}
#endif