mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-26 06:40:22 +00:00
(copied the changes from commits 68e16b6cee0f533027e1d8f1293b8a5582ac5a68 and 0de223c637d0820a97417d84796c1bfeb1836fb8) NOTE: it is unclear how this change affects commit 61a4a0807b4ed2398b8169b477132b12a1a3a106
38 lines
894 B
C++
38 lines
894 B
C++
#ifndef CSM_WOLRD_REFCOLLECTION_H
|
|
#define CSM_WOLRD_REFCOLLECTION_H
|
|
|
|
#include <map>
|
|
|
|
#include "../doc/stage.hpp"
|
|
|
|
#include "collection.hpp"
|
|
#include "ref.hpp"
|
|
#include "record.hpp"
|
|
|
|
namespace CSMWorld
|
|
{
|
|
struct Cell;
|
|
class UniversalId;
|
|
|
|
/// \brief References in cells
|
|
class RefCollection : public Collection<CellRef>
|
|
{
|
|
Collection<Cell>& mCells;
|
|
int mNextId;
|
|
|
|
public:
|
|
// MSVC needs the constructor for a class inheriting a template to be defined in header
|
|
RefCollection (Collection<Cell>& cells)
|
|
: mCells (cells), mNextId (0)
|
|
{}
|
|
|
|
void load (ESM::ESMReader& reader, int cellIndex, bool base,
|
|
std::map<unsigned int, std::string>& cache, CSMDoc::Messages& messages);
|
|
///< Load a sequence of references.
|
|
|
|
std::string getNewId();
|
|
};
|
|
}
|
|
|
|
#endif
|