mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 08:49:55 +00:00
35 lines
No EOL
802 B
C++
35 lines
No EOL
802 B
C++
#ifndef CSM_WOLRD_INFOCOLLECTION_H
|
|
#define CSM_WOLRD_INFOCOLLECTION_H
|
|
|
|
#include "collection.hpp"
|
|
#include "info.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
class Dialogue;
|
|
}
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class InfoCollection : public Collection<Info, IdAccessor<Info> >
|
|
{
|
|
public:
|
|
|
|
typedef std::map<std::string, int>::const_iterator MapConstIterator;
|
|
|
|
private:
|
|
|
|
void load (const Info& record, bool base);
|
|
|
|
public:
|
|
|
|
void load (ESM::ESMReader& reader, bool base, const ESM::Dialogue& dialogue);
|
|
|
|
std::pair<MapConstIterator, MapConstIterator> getTopicRange (const std::string& topic)
|
|
const;
|
|
///< Return iterators that point to the beginning and past the end of the range for
|
|
/// the given topic.
|
|
};
|
|
}
|
|
|
|
#endif |