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

Method popObject

Engine/source/console/simSet.cpp:201–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199//-----------------------------------------------------------------------------
200
201void SimSet::popObject()
202{
203 if(mObjectList.empty() )
204 {
205 AssertWarn(false, "Stack underflow in SimSet::popObject");
206 return;
207 }
208
209 lock();
210 SimObject* object = mObjectList.last();
211 mObjectList.pop_back();
212
213 clearNotify( object );
214 unlock();
215
216 getSetModificationSignal().trigger( SetObjectRemoved, this, object );
217 if( object->isProperlyAdded() )
218 onObjectRemoved_callback( object );
219}
220
221//-----------------------------------------------------------------------------
222

Callers 2

despawnTargetsMethod · 0.80
despawnTargetsMethod · 0.80

Calls 9

isProperlyAddedMethod · 0.80
emptyMethod · 0.45
lastMethod · 0.45
pop_backMethod · 0.45
triggerMethod · 0.45
lockMethod · 0.45
onGroupRemoveMethod · 0.45
removeMethod · 0.45
decRefCountMethod · 0.45

Tested by

no test coverage detected