1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 03:39:14 +00:00
OpenMW/apps/openmw/mwscript/ref.hpp
2022-05-21 10:48:32 +02:00

31 lines
595 B
C++

#ifndef GAME_MWSCRIPT_REF_H
#define GAME_MWSCRIPT_REF_H
#include "../mwworld/ptr.hpp"
namespace Interpreter
{
class Runtime;
}
namespace MWScript
{
struct ExplicitRef
{
static constexpr bool implicit = false;
MWWorld::Ptr operator() (Interpreter::Runtime& runtime, bool required = true,
bool activeOnly = false) const;
};
struct ImplicitRef
{
static constexpr bool implicit = true;
MWWorld::Ptr operator() (Interpreter::Runtime& runtime, bool required = true,
bool activeOnly = false) const;
};
}
#endif