[Client] Add getModifiableStore() to MWWorld

remotes/1728160796594174844/tmp_0.7.0-alpha
David Cernat 7 years ago
parent d778bc3b8a
commit 4e78642273

@ -132,6 +132,16 @@ namespace MWBase
virtual const MWWorld::ESMStore& getStore() const = 0; virtual const MWWorld::ESMStore& getStore() const = 0;
/*
Start of tes3mp addition
Make it possible to get the World's ESMStore as a non-const
*/
virtual MWWorld::ESMStore& getModifiableStore() = 0;
/*
End of tes3mp addition
*/
virtual std::vector<ESM::ESMReader>& getEsmReader() = 0; virtual std::vector<ESM::ESMReader>& getEsmReader() = 0;
virtual MWWorld::LocalScripts& getLocalScripts() = 0; virtual MWWorld::LocalScripts& getLocalScripts() = 0;

@ -595,6 +595,19 @@ namespace MWWorld
return mStore; return mStore;
} }
/*
Start of tes3mp addition
Make it possible to get the World's ESMStore as a non-const
*/
MWWorld::ESMStore& World::getModifiableStore()
{
return mStore;
}
/*
End of tes3mp addition
*/
std::vector<ESM::ESMReader>& World::getEsmReader() std::vector<ESM::ESMReader>& World::getEsmReader()
{ {
return mEsm; return mEsm;

@ -239,6 +239,16 @@ namespace MWWorld
const MWWorld::ESMStore& getStore() const override; const MWWorld::ESMStore& getStore() const override;
/*
Start of tes3mp addition
Make it possible to get the World's ESMStore as a non-const
*/
MWWorld::ESMStore& getModifiableStore() override;
/*
End of tes3mp addition
*/
std::vector<ESM::ESMReader>& getEsmReader() override; std::vector<ESM::ESMReader>& getEsmReader() override;
LocalScripts& getLocalScripts() override; LocalScripts& getLocalScripts() override;

Loading…
Cancel
Save