1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 19:45:40 +00:00
openmw/components/esm3/locals.hpp

28 lines
495 B
C++
Raw Normal View History

#ifndef OPENMW_ESM_LOCALS_H
#define OPENMW_ESM_LOCALS_H
#include <string>
2022-09-22 18:26:05 +00:00
#include <vector>
#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;
2022-09-22 18:26:05 +00:00
void load(ESMReader& esm);
void save(ESMWriter& esm) const;
};
}
#endif