mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
741 B
C++
39 lines
741 B
C++
12 years ago
|
#ifndef OPENMW_ESM_GLOB_H
|
||
|
#define OPENMW_ESM_GLOB_H
|
||
15 years ago
|
|
||
12 years ago
|
#include <string>
|
||
|
|
||
12 years ago
|
#include "variant.hpp"
|
||
15 years ago
|
|
||
14 years ago
|
namespace ESM
|
||
|
{
|
||
15 years ago
|
|
||
12 years ago
|
class ESMReader;
|
||
|
class ESMWriter;
|
||
|
|
||
15 years ago
|
/*
|
||
|
* Global script variables
|
||
|
*/
|
||
|
|
||
12 years ago
|
struct Global
|
||
15 years ago
|
{
|
||
11 years ago
|
static unsigned int sRecordId;
|
||
10 years ago
|
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
|
||
3 years ago
|
static std::string_view getRecordType() { return "Global"; }
|
||
11 years ago
|
|
||
3 years ago
|
unsigned int mRecordFlags;
|
||
12 years ago
|
std::string mId;
|
||
12 years ago
|
Variant mValue;
|
||
15 years ago
|
|
||
10 years ago
|
void load(ESMReader &esm, bool &isDeleted);
|
||
|
void save(ESMWriter &esm, bool isDeleted = false) const;
|
||
12 years ago
|
|
||
|
void blank();
|
||
|
///< Set record to default state (does not touch the ID).
|
||
15 years ago
|
};
|
||
12 years ago
|
|
||
|
bool operator== (const Global& left, const Global& right);
|
||
|
|
||
15 years ago
|
}
|
||
|
#endif
|