1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:23:52 +00:00
openmw-tes3mp/apps/openmw/mwscript/interpretercontext.hpp

56 lines
1.3 KiB
C++
Raw Normal View History

2010-07-02 16:08:00 +00:00
#ifndef GAME_SCRIPT_INTERPRETERCONTEXT_H
#define GAME_SCRIPT_INTERPRETERCONTEXT_H
#include <components/interpreter/context.hpp>
2010-07-03 13:41:20 +00:00
namespace MWWorld
2010-07-02 16:08:00 +00:00
{
class World;
}
namespace MWSound
{
class SoundManager;
}
2010-07-02 16:08:00 +00:00
namespace MWScript
{
struct Locals;
class InterpreterContext : public Interpreter::Context
{
2010-07-03 13:41:20 +00:00
MWWorld::World& mWorld;
MWSound::SoundManager& mSoundManager;
2010-07-02 16:08:00 +00:00
Locals *mLocals;
public:
2010-07-03 13:41:20 +00:00
InterpreterContext (MWWorld::World& world, MWSound::SoundManager& soundManager,
MWScript::Locals *locals);
2010-07-02 16:08:00 +00:00
///< The ownership of \a locals is not transferred. 0-pointer allowed.
virtual int getLocalShort (int index) const;
virtual int getLocalLong (int index) const;
virtual float getLocalFloat (int index) const;
virtual void setLocalShort (int index, int value);
virtual void setLocalLong (int index, int value);
virtual void setLocalFloat (int index, float value);
virtual void messageBox (const std::string& message,
const std::vector<std::string>& buttons);
2010-07-03 13:41:20 +00:00
MWWorld::World& getWorld();
MWSound::SoundManager& getSoundManager();
2010-07-02 16:08:00 +00:00
};
}
#endif