2013-04-14 15:04:55 +00:00
|
|
|
#ifndef CSM_WOLRD_CELL_H
|
|
|
|
#define CSM_WOLRD_CELL_H
|
|
|
|
|
2013-06-08 10:45:13 +00:00
|
|
|
#include <vector>
|
|
|
|
#include <string>
|
|
|
|
|
2013-04-14 15:04:55 +00:00
|
|
|
#include <components/esm/loadcell.hpp>
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
/// \brief Wrapper for Cell record
|
|
|
|
struct Cell : public ESM::Cell
|
|
|
|
{
|
|
|
|
std::string mId;
|
2013-06-08 10:45:13 +00:00
|
|
|
std::vector<std::pair<std::string, bool> > mRefs; // ID, modified
|
|
|
|
std::vector<std::string> mDeletedRefs;
|
2013-04-14 15:04:55 +00:00
|
|
|
|
|
|
|
void load (ESM::ESMReader &esm);
|
2013-06-08 10:45:13 +00:00
|
|
|
|
|
|
|
void addRef (const std::string& id);
|
2013-04-14 15:04:55 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|