1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-29 22:20:33 +00:00

Add comment for MWWorld::Ptr::getType() because it is not obvious.

This commit is contained in:
Petr Mikheev 2021-10-12 21:25:34 +02:00
parent 6b482d0b52
commit 4e9d691715

View File

@ -35,6 +35,11 @@ namespace MWWorld
return mRef == nullptr;
}
// Returns a 32-bit id of the ESM record this object is based on.
// Specific values of ids are defined in ESM::RecNameInts.
// Note 1: ids are not sequential. E.g. for a creature `getType` returns 0x41455243.
// Note 2: Life is not easy and full of surprises. For example
// prison marker reuses ESM::Door record. Player is ESM::NPC.
unsigned int getType() const;
std::string getTypeDescription() const