mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
variable naming cleanup due to locals overriding in multiple places. objectname to mObjectName+ getName() refs in dictionary.
This commit is contained in:
parent
e079536122
commit
886dcbaac5
3 changed files with 27 additions and 27 deletions
|
|
@ -71,7 +71,7 @@ namespace Sim
|
|||
|
||||
SimObject::SimObject()
|
||||
{
|
||||
objectName = NULL;
|
||||
mObjectName = NULL;
|
||||
mOriginalName = NULL;
|
||||
mInternalName = NULL;
|
||||
nextNameObject = nullptr;
|
||||
|
|
@ -128,10 +128,10 @@ SimObject::~SimObject()
|
|||
|
||||
AssertFatal(nextNameObject == nullptr,avar(
|
||||
"SimObject::~SimObject: Not removed from dictionary: name %s, id %i",
|
||||
objectName, mId));
|
||||
mObjectName, mId));
|
||||
AssertFatal(nextManagerNameObject == nullptr,avar(
|
||||
"SimObject::~SimObject: Not removed from manager dictionary: name %s, id %i",
|
||||
objectName,mId));
|
||||
mObjectName,mId));
|
||||
AssertFatal(mFlags.test(Added) == 0, "SimObject::object "
|
||||
"missing call to SimObject::onRemove");
|
||||
}
|
||||
|
|
@ -149,7 +149,7 @@ void SimObject::initPersistFields()
|
|||
{
|
||||
addGroup( "Ungrouped" );
|
||||
|
||||
addProtectedField( "name", TypeName, Offset(objectName, SimObject), &setProtectedName, &defaultProtectedGetFn,
|
||||
addProtectedField( "name", TypeName, Offset(mObjectName, SimObject), &setProtectedName, &defaultProtectedGetFn,
|
||||
"Optional global name of this object." );
|
||||
|
||||
endGroup( "Ungrouped" );
|
||||
|
|
@ -211,8 +211,8 @@ String SimObject::describeSelf() const
|
|||
|
||||
if( mId != 0 )
|
||||
desc = avar( "%s|id: %i", desc.c_str(), mId );
|
||||
if( objectName )
|
||||
desc = avar( "%s|name: %s", desc.c_str(), objectName );
|
||||
if(mObjectName)
|
||||
desc = avar( "%s|name: %s", desc.c_str(), mObjectName);
|
||||
if( mInternalName )
|
||||
desc = avar( "%s|internal: %s", desc.c_str(), mInternalName );
|
||||
if( mNameSpace )
|
||||
|
|
@ -754,9 +754,9 @@ void SimObject::setId(SimObjectId newId)
|
|||
|
||||
void SimObject::assignName(const char *name)
|
||||
{
|
||||
if( objectName && !isNameChangeAllowed() )
|
||||
if(mObjectName && !isNameChangeAllowed() )
|
||||
{
|
||||
Con::errorf( "SimObject::assignName - not allowed to change name of object '%s'", objectName );
|
||||
Con::errorf( "SimObject::assignName - not allowed to change name of object '%s'", mObjectName);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -781,7 +781,7 @@ void SimObject::assignName(const char *name)
|
|||
Sim::gNameDictionary->remove( this );
|
||||
}
|
||||
|
||||
objectName = newName;
|
||||
mObjectName = newName;
|
||||
|
||||
if( mGroup )
|
||||
mGroup->mNameDictionary.insert( this );
|
||||
|
|
@ -1373,7 +1373,7 @@ SimObject::SimObject(const SimObject& other, bool temp_clone)
|
|||
{
|
||||
is_temp_clone = temp_clone;
|
||||
|
||||
objectName = other.objectName;
|
||||
mObjectName = other.mObjectName;
|
||||
mOriginalName = other.mOriginalName;
|
||||
nextNameObject = other.nextNameObject;
|
||||
nextManagerNameObject = other.nextManagerNameObject;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue