mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-03 07:11:32 +00:00
Add comment for MWWorld::Ptr::getType() because it is not obvious.
This commit is contained in:
parent
6b482d0b52
commit
4e9d691715
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue