2010-12-31 18:09:25 +00:00
|
|
|
#ifndef GAME_MWSCRIPT_REF_H
|
|
|
|
#define GAME_MWSCRIPT_REF_H
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
2015-02-09 16:45:48 +00:00
|
|
|
namespace Interpreter
|
|
|
|
{
|
|
|
|
class Runtime;
|
|
|
|
}
|
2010-12-31 18:09:25 +00:00
|
|
|
|
|
|
|
namespace MWScript
|
|
|
|
{
|
|
|
|
struct ExplicitRef
|
|
|
|
{
|
2021-03-21 12:56:56 +00:00
|
|
|
static constexpr bool implicit = false;
|
2014-10-15 14:27:03 +00:00
|
|
|
|
2015-02-09 16:45:48 +00:00
|
|
|
MWWorld::Ptr operator()(Interpreter::Runtime& runtime, bool required = true, bool activeOnly = false) const;
|
2010-12-31 18:09:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct ImplicitRef
|
|
|
|
{
|
2021-03-21 12:56:56 +00:00
|
|
|
static constexpr bool implicit = true;
|
2014-10-15 14:27:03 +00:00
|
|
|
|
2015-02-09 16:45:48 +00:00
|
|
|
MWWorld::Ptr operator()(Interpreter::Runtime& runtime, bool required = true, bool activeOnly = false) const;
|
2010-12-31 18:09:25 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|