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

Method describeSelf

Engine/source/console/simObject.cpp:217–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215//-----------------------------------------------------------------------------
216
217String SimObject::describeSelf() const
218{
219 String desc = Parent::describeSelf();
220
221 if( mId != 0 )
222 desc = avar( "%s|id: %i", desc.c_str(), mId );
223 if(mObjectName)
224 desc = avar( "%s|name: %s", desc.c_str(), mObjectName);
225 if( mInternalName )
226 desc = avar( "%s|internal: %s", desc.c_str(), mInternalName );
227 if( mNameSpace )
228 desc = avar( "%s|nspace: %s", desc.c_str(), mNameSpace->mName );
229 if( mGroup )
230 desc = avar( "%s|group: %s", desc.c_str(), mGroup->getName() );
231 if( mCopySource )
232 desc = avar( "%s|copy: %s", desc.c_str(), mCopySource->getName() );
233 if( mPersistentId )
234 desc = avar( "%s|pid: %s", desc.c_str(), mPersistentId->getUUID().toString().c_str() );
235
236 return desc;
237}
238
239// Copies dynamic fields from one object to another, optionally limited by the settings for
240// <filter> and <no_replace>. When true, <no_replace> prohibits the replacement of fields that

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