1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00
OpenMW/apps/opencs/model/world/refcollection.hpp

32 lines
738 B
C++
Raw Normal View History

2013-07-06 17:03:18 +02:00
#ifndef CSM_WOLRD_REFCOLLECTION_H
#define CSM_WOLRD_REFCOLLECTION_H
#include "collection.hpp"
#include "ref.hpp"
#include "record.hpp"
namespace CSMWorld
{
struct Cell;
/// \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
2013-09-04 23:25:47 +02:00
RefCollection (Collection<Cell>& cells)
: mCells (cells), mNextId (0)
{}
2013-07-06 17:03:18 +02:00
void load (ESM::ESMReader& reader, int cellIndex, bool base);
///< Load a sequence of references.
std::string getNewId();
2013-07-06 17:03:18 +02:00
};
}
#endif