1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 03:32:36 +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 21:26:05 +03: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 21:26:05 +03:00
std::vector<std::pair<std::string, Variant>> mVariables;
2022-09-22 21:26:05 +03:00
void load(ESMReader& esm);
void save(ESMWriter& esm) const;
};
}
#endif