mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
added additional type argument to IdCollection::load
This commit is contained in:
parent
808718d967
commit
a17d17c191
@ -79,7 +79,9 @@ namespace CSMWorld
|
|||||||
|
|
||||||
virtual const RecordBase& getRecord (int index) const = 0;
|
virtual const RecordBase& getRecord (int index) const = 0;
|
||||||
|
|
||||||
virtual void load (ESM::ESMReader& reader, bool base) = 0;
|
virtual void load (ESM::ESMReader& reader, bool base,
|
||||||
|
UniversalId::Type type = UniversalId::Type_None) = 0;
|
||||||
|
///< \param type Will be ignored, unless the collection supports multiple record types
|
||||||
};
|
};
|
||||||
|
|
||||||
///< \brief Access to ID field in records
|
///< \brief Access to ID field in records
|
||||||
@ -171,7 +173,9 @@ namespace CSMWorld
|
|||||||
|
|
||||||
virtual const Record<ESXRecordT>& getRecord (int index) const;
|
virtual const Record<ESXRecordT>& getRecord (int index) const;
|
||||||
|
|
||||||
virtual void load (ESM::ESMReader& reader, bool base);
|
virtual void load (ESM::ESMReader& reader, bool base,
|
||||||
|
UniversalId::Type type = UniversalId::Type_None);
|
||||||
|
///< \param type Will be ignored, unless the collection supports multiple record types
|
||||||
|
|
||||||
void addColumn (Column<ESXRecordT> *column);
|
void addColumn (Column<ESXRecordT> *column);
|
||||||
};
|
};
|
||||||
@ -348,7 +352,8 @@ namespace CSMWorld
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename ESXRecordT, typename IdAccessorT>
|
template<typename ESXRecordT, typename IdAccessorT>
|
||||||
void IdCollection<ESXRecordT, IdAccessorT>::load (ESM::ESMReader& reader, bool base)
|
void IdCollection<ESXRecordT, IdAccessorT>::load (ESM::ESMReader& reader, bool base,
|
||||||
|
UniversalId::Type type)
|
||||||
{
|
{
|
||||||
std::string id = reader.getHNOString ("NAME");
|
std::string id = reader.getHNOString ("NAME");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user