1 #ifndef CSM_DOC_SAVINGSTAGES_H
2 #define CSM_DOC_SAVINGSTAGES_H
6 #include "../world/record.hpp"
7 #include "../world/idcollection.hpp"
8 #include "../world/scope.hpp"
66 template<
class CollectionT>
85 template<
class CollectionT>
88 : mCollection (collection), mState (state), mScope (scope)
91 template<
class CollectionT>
94 return mCollection.getSize();
97 template<
class CollectionT>
105 typename CollectionT::ESXRecord record = mCollection.getRecord (stage).get();
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:381
SavingState & mState
Definition: savingstages.hpp:254
Definition: savingstages.hpp:236
virtual int setup()
Definition: savingstages.cpp:481
void startRecord(const std::string &name, uint32_t flags=0)
Definition: esmwriter.cpp:89
SavingState & mState
Definition: savingstages.hpp:238
bool mProjectFile
Definition: savingstages.hpp:33
Definition: savingstages.hpp:29
virtual int setup()
Definition: savingstages.cpp:256
CSMWorld::InfoCollection & mInfos
Definition: savingstages.hpp:122
CloseSaveStage(SavingState &state)
Definition: savingstages.cpp:459
SavingState & mState
Definition: savingstages.hpp:139
CSMWorld::Scope mScope
Definition: savingstages.hpp:71
WriteDialogueCollectionStage(Document &document, SavingState &state, bool journal)
Definition: savingstages.cpp:89
FinalSavingStage(Document &document, SavingState &state)
Definition: savingstages.cpp:477
virtual int setup()
Definition: savingstages.cpp:96
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:443
Definition: infocollection.hpp:14
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:417
Definition: savingstages.hpp:136
Definition: messages.hpp:38
WriteRefIdCollectionStage(Document &document, SavingState &state)
Definition: savingstages.cpp:180
Definition: savingstages.hpp:118
virtual int setup()
Definition: savingstages.cpp:463
SavingState & mState
Definition: savingstages.hpp:156
SavingState & mState
Definition: savingstages.hpp:189
Definition: record.hpp:13
State
Definition: record.hpp:10
Definition: savingstages.hpp:169
Definition: esmwriter.hpp:17
WritePathgridCollectionStage(Document &document, SavingState &state)
Definition: savingstages.cpp:371
virtual int setup()
Definition: savingstages.cpp:200
Definition: savingstages.hpp:153
Definition: record.hpp:14
Document & mDocument
Definition: savingstages.hpp:155
virtual int setup()
Definition: savingstages.cpp:376
Document & mDocument
Definition: savingstages.hpp:138
Document & mDocument
Definition: savingstages.hpp:31
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.hpp:98
virtual int setup()
Definition: savingstages.cpp:412
Definition: savingstages.hpp:67
CollectionReferencesStage(Document &document, SavingState &state)
Definition: savingstages.cpp:195
virtual int setup()
Definition: savingstages.cpp:23
Scope
Definition: scope.hpp:8
virtual int setup()
Definition: savingstages.cpp:184
Definition: record.hpp:15
Scope getScopeFromId(const std::string &id)
Definition: scope.cpp:7
WriteLandTextureCollectionStage(Document &document, SavingState &state)
Definition: savingstages.cpp:433
const CSMWorld::IdCollection< ESM::Dialogue > & mTopics
Definition: savingstages.hpp:121
WriteLandCollectionStage(Document &document, SavingState &state)
Definition: savingstages.cpp:407
WriteCollectionStage(const CollectionT &collection, SavingState &state, CSMWorld::Scope scope=CSMWorld::Scope_Content)
Definition: savingstages.hpp:86
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:468
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:486
SavingState & mState
Definition: savingstages.hpp:206
Definition: document.hpp:57
SavingState & mState
Definition: savingstages.hpp:120
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:261
const CollectionT & mCollection
Definition: savingstages.hpp:69
SavingState & mState
Definition: savingstages.hpp:223
Definition: savingstages.hpp:186
Definition: savingstages.hpp:220
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:28
Document & mDocument
Definition: savingstages.hpp:205
Definition: savingstages.hpp:251
WriteCellCollectionStage(Document &document, SavingState &state)
Definition: savingstages.cpp:251
Document & mDocument
Definition: savingstages.hpp:222
Document & mDocument
Definition: savingstages.hpp:188
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:101
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:189
SavingState & mState
Definition: savingstages.hpp:70
void endRecord(const std::string &name)
Definition: esmwriter.cpp:132
SavingState & mState
Definition: savingstages.hpp:172
virtual void perform(int stage, Messages &messages)
Messages resulting from this stage will be appended to messages.
Definition: savingstages.cpp:212
Document & mDocument
Definition: savingstages.hpp:253
virtual int setup()
Definition: savingstages.hpp:92
Definition: savingstate.hpp:20
SavingState & mState
Definition: savingstages.hpp:32
Document & mDocument
Definition: savingstages.hpp:171
virtual int setup()
Definition: savingstages.cpp:438
OpenSaveStage(Document &document, SavingState &state, bool projectFile)
Definition: savingstages.cpp:19
Definition: savingstages.hpp:203