1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 13:23:53 +00:00
openmw/apps/opencs/model/world/infocollection.hpp
elsid 4ed0960856
Remove redundant IdAccessor type
Use overloaded free functions instead.
2023-02-25 13:49:22 +01:00

34 lines
764 B
C++

#ifndef CSM_WOLRD_INFOCOLLECTION_H
#define CSM_WOLRD_INFOCOLLECTION_H
#include <string>
#include <unordered_map>
#include <vector>
#include "collection.hpp"
#include "info.hpp"
namespace ESM
{
struct Dialogue;
class ESMReader;
}
namespace CSMWorld
{
using InfosByTopic = std::unordered_map<ESM::RefId, std::vector<ESM::RefId>>;
using InfosRecordPtrByTopic = std::unordered_map<ESM::RefId, std::vector<const Record<Info>*>>;
class InfoCollection : public Collection<Info>
{
private:
bool load(const Info& record, bool base);
public:
void load(ESM::ESMReader& reader, bool base, const ESM::Dialogue& dialogue, InfosByTopic& infosByTopic);
InfosRecordPtrByTopic getInfosByTopic() const;
};
}
#endif