[Client] Add getModifiableStore() to MWWorld

fix/skillcap
David Cernat 7 years ago
parent d778bc3b8a
commit 4e78642273

@ -132,6 +132,16 @@ namespace MWBase
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 MWWorld::LocalScripts& getLocalScripts() = 0;

@ -595,6 +595,19 @@ namespace MWWorld
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()
{
return mEsm;

@ -239,6 +239,16 @@ namespace MWWorld
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;
LocalScripts& getLocalScripts() override;

Loading…
Cancel
Save