MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getOrCreatePersistentId

Method getOrCreatePersistentId

Engine/source/console/simObject.cpp:480–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478//-----------------------------------------------------------------------------
479
480SimPersistID* SimObject::getOrCreatePersistentId()
481{
482 if( !mPersistentId )
483 {
484 mPersistentId = SimPersistID::create( this );
485 mPersistentId->incRefCount();
486 }
487 return mPersistentId;
488}
489
490
491

Callers 4

mountObjectMethod · 0.80
simObject.cppFile · 0.80
addObjectMethod · 0.80
setCanSaveMethod · 0.80

Calls 1

incRefCountMethod · 0.45

Tested by

no test coverage detected