1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 16:09:43 +00:00

Adds comment that explains what RefIds are

This commit is contained in:
florent.teppe 2022-11-13 10:13:46 +01:00
parent a7d0a8d9d1
commit e7deffb376

View file

@ -10,6 +10,9 @@ namespace ESM
{
struct RefId
{
// This structure is used to represent an Id that identifies an ESM record. These Ids can then be used in
// ESM::Stores to find the actual record. These Ids can be serialized/de-serialized, stored on disk and remain
// valid. They are used by ESM files, by records to reference other ESM records.
const static RefId sEmpty;
bool empty() const { return mId.empty(); }
void swap(RefId& rhs) { mId.swap(rhs.mId); }