2013-12-15 15:16:50 +00:00
|
|
|
#ifndef OPENMW_ESM_LOCALS_H
|
|
|
|
#define OPENMW_ESM_LOCALS_H
|
|
|
|
|
|
|
|
#include <string>
|
2022-09-22 18:26:05 +00:00
|
|
|
#include <vector>
|
2013-12-15 15:16:50 +00:00
|
|
|
|
|
|
|
#include "variant.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
|
|
|
/// \brief Storage structure for local variables (only used in saved games)
|
|
|
|
///
|
|
|
|
/// \note This is not a top-level record.
|
|
|
|
|
|
|
|
struct Locals
|
|
|
|
{
|
2022-09-22 18:26:05 +00:00
|
|
|
std::vector<std::pair<std::string, Variant>> mVariables;
|
2013-12-15 15:16:50 +00:00
|
|
|
|
2022-09-22 18:26:05 +00:00
|
|
|
void load(ESMReader& esm);
|
|
|
|
void save(ESMWriter& esm) const;
|
2013-12-15 15:16:50 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|