move saving of buffers into SwgSnapshot

This commit is contained in:
DarthArgus
2016-12-15 03:02:03 +00:00
parent 897dda2600
commit 505e68cec6
7 changed files with 1321 additions and 1435 deletions
@@ -87,14 +87,6 @@ bool Snapshot::saveToDB(DB::Session *session)
return false;
}
for (BufferListType::iterator buffer=m_bufferList.begin(); buffer!=m_bufferList.end(); ++buffer)
{
if (! (*buffer)->save(session)) {
m_isBeingSaved = false;
return false;
}
}
for (step=m_customStepList.begin(); step !=m_customStepList.end(); ++step)
{
NOT_NULL(*step);
@@ -79,7 +79,6 @@ public:
virtual void startLoadAfterSaveComplete() =0;
protected:
typedef std::vector<AbstractTableBuffer *> BufferListType;
typedef std::vector<ObjectLocator *> LocatorListType;
typedef std::vector<CustomPersistStep*> CustomStepListType;
@@ -88,7 +87,6 @@ public:
* The base class deals with the buffers using only the interface of
* AbstractTableBuffer.
*/
BufferListType m_bufferList;
LocatorListType m_locatorList; ///< List of ObjectLocators that find objects in the database
CustomStepListType m_customStepList; ///< List of extra things to do while saving this snapshot (e.g. associating characters with accounts)