MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / describeSelf

Method describeSelf

Engine/source/console/simObject.cpp:193–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191//-----------------------------------------------------------------------------
192
193String SimObject::describeSelf() const
194{
195 String desc = Parent::describeSelf();
196
197 if( mId != 0 )
198 desc = avar( "%s|id: %i", desc.c_str(), mId );
199 if( objectName )
200 desc = avar( "%s|name: %s", desc.c_str(), objectName );
201 if( mInternalName )
202 desc = avar( "%s|internal: %s", desc.c_str(), mInternalName );
203 if( mNameSpace )
204 desc = avar( "%s|nspace: %s", desc.c_str(), mNameSpace->mName );
205 if( mGroup )
206 desc = avar( "%s|group: %s", desc.c_str(), mGroup->getName() );
207 if( mCopySource )
208 desc = avar( "%s|copy: %s", desc.c_str(), mCopySource->getName() );
209 if( mPersistentId )
210 desc = avar( "%s|pid: %s", desc.c_str(), mPersistentId->getUUID().toString().c_str() );
211
212 return desc;
213}
214
215//=============================================================================
216// Persistence.

Callers 1

simObject.cppFile · 0.45

Calls 4

avarFunction · 0.85
c_strMethod · 0.45
getNameMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected