mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:19:55 +00:00
[Client] Add getModifiableStore() to MWWorld
This commit is contained in:
parent
d778bc3b8a
commit
4e78642273
3 changed files with 33 additions and 0 deletions
|
@ -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…
Reference in a new issue