mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-03 18:12:58 -04:00
move saving of buffers into SwgSnapshot
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user