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

Method addObject

Engine/source/console/simSet.cpp:134–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132//-----------------------------------------------------------------------------
133
134void SimSet::addObject( SimObject* obj )
135{
136 // Prevent SimSet being added to itself.
137 if( obj == this )
138 return;
139
140 lock();
141
142 const bool added = objectList.pushBack( obj );
143 if( added )
144 deleteNotify( obj );
145
146 unlock();
147
148 if( added )
149 {
150 getSetModificationSignal().trigger( SetObjectAdded, this, obj );
151 if( obj->isProperlyAdded() )
152 onObjectAdded_callback( obj );
153 }
154}
155
156//-----------------------------------------------------------------------------
157

Callers 3

cloneMethod · 0.45
deepCloneMethod · 0.45
simSet.cppFile · 0.45

Calls 3

isProperlyAddedMethod · 0.80
pushBackMethod · 0.45
triggerMethod · 0.45

Tested by

no test coverage detected