mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +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;
|
||||
|
||||
/*
|
||||
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…
Reference in a new issue