MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / ~SimObject

Method ~SimObject

Engine/source/console/simObject.cpp:95–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93//-----------------------------------------------------------------------------
94
95SimObject::~SimObject()
96{
97 if( mFieldDictionary )
98 {
99 delete mFieldDictionary;
100 mFieldDictionary = NULL;
101 }
102
103 // Release persistent ID.
104 if( mPersistentId )
105 {
106 mPersistentId->unresolve();
107 mPersistentId->decRefCount();
108 mPersistentId = NULL;
109 }
110
111 if( mCopySource )
112 mCopySource->unregisterReference( &mCopySource );
113
114 AssertFatal(nextNameObject == (SimObject*)-1,avar(
115 "SimObject::~SimObject: Not removed from dictionary: name %s, id %i",
116 objectName, mId));
117 AssertFatal(nextManagerNameObject == (SimObject*)-1,avar(
118 "SimObject::~SimObject: Not removed from manager dictionary: name %s, id %i",
119 objectName,mId));
120 AssertFatal(mFlags.test(Added) == 0, "SimObject::object "
121 "missing call to SimObject::onRemove");
122}
123
124//-----------------------------------------------------------------------------
125

Callers

nothing calls this directly

Calls 5

avarFunction · 0.85
unresolveMethod · 0.80
unregisterReferenceMethod · 0.80
decRefCountMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected