2015-06-24 11:58:28 +00:00
|
|
|
#ifndef GAME_MWWORLD_MWSTORE_H
|
|
|
|
#define GAME_MWWORLD_MWSTORE_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2015-06-25 03:32:22 +00:00
|
|
|
#include <components/autocalc/store.hpp>
|
2015-06-24 11:58:28 +00:00
|
|
|
|
|
|
|
#include "store.hpp"
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
2015-06-25 03:32:22 +00:00
|
|
|
class MWStore : public AutoCalc::StoreCommon
|
2015-06-24 11:58:28 +00:00
|
|
|
{
|
|
|
|
const MWWorld::Store<ESM::GameSetting>& mGmst;
|
|
|
|
const MWWorld::Store<ESM::Spell> &mSpells;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
MWStore();
|
|
|
|
~MWStore();
|
|
|
|
|
|
|
|
virtual int findGmstInt(const std::string& name) const;
|
|
|
|
|
|
|
|
virtual float findGmstFloat(const std::string& name) const;
|
|
|
|
|
|
|
|
virtual const ESM::Skill *findSkill(int index) const;
|
|
|
|
|
|
|
|
virtual const ESM::MagicEffect* findMagicEffect(int id) const;
|
|
|
|
|
2015-06-25 09:25:47 +00:00
|
|
|
virtual void getSpells(std::vector<ESM::Spell*>& spells);
|
2015-06-24 11:58:28 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // GAME_MWWORLD_MWSTORE_H
|