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

Method saveObject

Engine/source/console/persistenceManager.cpp:239–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void PersistenceManager::saveObject()
240{
241 // Now that we have all of the data attempt to
242 // find the corresponding SimObject
243 mCurrentObject->simObject = Sim::findObject(mCurrentFile, mCurrentObject->endLine + 1);
244
245 // Save this object
246 mObjectBuffer.push_back(mCurrentObject);
247
248 mCurrentObject = NULL;
249
250 // If there is an object in the stack restore it
251 if (mObjectStack.size() > 0)
252 {
253 mCurrentObject = mObjectStack.last();
254 mObjectStack.pop_back();
255 }
256}
257
258void PersistenceManager::parseObject()
259{

Callers

nothing calls this directly

Calls 5

findObjectFunction · 0.70
push_backMethod · 0.45
sizeMethod · 0.45
lastMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected