|
|
|
@ -34,7 +34,7 @@ namespace CSMWorld
|
|
|
|
|
void Collection<CellRef>::insertRecord(std::unique_ptr<RecordBase> record, int index, UniversalId::Type type);
|
|
|
|
|
|
|
|
|
|
/// \brief References in cells
|
|
|
|
|
class RefCollection : public Collection<CellRef>
|
|
|
|
|
class RefCollection final : public Collection<CellRef>
|
|
|
|
|
{
|
|
|
|
|
Collection<Cell>& mCells;
|
|
|
|
|
std::map<unsigned int, int> mRefIndex; // CellRef index keyed by CSMWorld::CellRef::mIdNum
|
|
|
|
@ -61,20 +61,19 @@ namespace CSMWorld
|
|
|
|
|
|
|
|
|
|
std::string getNewId();
|
|
|
|
|
|
|
|
|
|
virtual void removeRows(int index, int count);
|
|
|
|
|
void removeRows(int index, int count) override;
|
|
|
|
|
|
|
|
|
|
virtual void appendBlankRecord(const std::string& id, UniversalId::Type type = UniversalId::Type_None);
|
|
|
|
|
virtual void appendBlankRecord(const ESM::RefId& id, UniversalId::Type type = UniversalId::Type_None);
|
|
|
|
|
void appendBlankRecord(const ESM::RefId& id, UniversalId::Type type = UniversalId::Type_None) override;
|
|
|
|
|
|
|
|
|
|
virtual void cloneRecord(const ESM::RefId& origin, const ESM::RefId& destination, const UniversalId::Type type);
|
|
|
|
|
void cloneRecord(
|
|
|
|
|
const ESM::RefId& origin, const ESM::RefId& destination, const UniversalId::Type type) override;
|
|
|
|
|
|
|
|
|
|
virtual int searchId(std::string_view id) const;
|
|
|
|
|
virtual int searchId(const ESM::RefId& id) const;
|
|
|
|
|
int searchId(const ESM::RefId& id) const override;
|
|
|
|
|
|
|
|
|
|
virtual void appendRecord(std::unique_ptr<RecordBase> record, UniversalId::Type type = UniversalId::Type_None);
|
|
|
|
|
void appendRecord(std::unique_ptr<RecordBase> record, UniversalId::Type type = UniversalId::Type_None) override;
|
|
|
|
|
|
|
|
|
|
virtual void insertRecord(
|
|
|
|
|
std::unique_ptr<RecordBase> record, int index, UniversalId::Type type = UniversalId::Type_None);
|
|
|
|
|
void insertRecord(
|
|
|
|
|
std::unique_ptr<RecordBase> record, int index, UniversalId::Type type = UniversalId::Type_None) override;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|