2013-07-06 15:03:18 +00:00
|
|
|
#ifndef CSM_WOLRD_REFCOLLECTION_H
|
|
|
|
#define CSM_WOLRD_REFCOLLECTION_H
|
|
|
|
|
|
|
|
#include "collection.hpp"
|
|
|
|
#include "ref.hpp"
|
|
|
|
#include "record.hpp"
|
|
|
|
|
|
|
|
namespace CSMWorld
|
|
|
|
{
|
|
|
|
struct Cell;
|
2014-01-21 20:37:21 +00:00
|
|
|
struct UniversalId;
|
2013-07-06 15:03:18 +00:00
|
|
|
|
|
|
|
/// \brief References in cells
|
|
|
|
class RefCollection : public Collection<CellRef>
|
|
|
|
{
|
|
|
|
Collection<Cell>& mCells;
|
|
|
|
int mNextId;
|
|
|
|
|
|
|
|
public:
|
2013-09-05 08:39:17 +00:00
|
|
|
// MSVC needs the constructor for a class inheriting a template to be defined in header
|
2013-09-04 21:25:47 +00:00
|
|
|
RefCollection (Collection<Cell>& cells)
|
|
|
|
: mCells (cells), mNextId (0)
|
|
|
|
{}
|
2013-07-06 15:03:18 +00:00
|
|
|
|
|
|
|
void load (ESM::ESMReader& reader, int cellIndex, bool base);
|
|
|
|
///< Load a sequence of references.
|
2013-07-30 10:53:03 +00:00
|
|
|
|
|
|
|
std::string getNewId();
|
2013-07-06 15:03:18 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|