OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ref.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWSCRIPT_REF_H
2 #define GAME_MWSCRIPT_REF_H
3 
4 #include <string>
5 
6 #include "../mwworld/ptr.hpp"
7 
8 namespace Interpreter
9 {
10  class Runtime;
11 }
12 
13 namespace MWScript
14 {
15  struct ExplicitRef
16  {
17  static const bool implicit = false;
18 
19  MWWorld::Ptr operator() (Interpreter::Runtime& runtime, bool required = true,
20  bool activeOnly = false) const;
21  };
22 
23  struct ImplicitRef
24  {
25  static const bool implicit = true;
26 
27  MWWorld::Ptr operator() (Interpreter::Runtime& runtime, bool required = true,
28  bool activeOnly = false) const;
29  };
30 }
31 
32 #endif
MWWorld::Ptr operator()(Interpreter::Runtime &runtime, bool required=true, bool activeOnly=false) const
Definition: ref.cpp:22
Runtime data and engine interface.
Definition: runtime.hpp:15
Definition: ref.hpp:23
Definition: ref.hpp:15
MWWorld::Ptr operator()(Interpreter::Runtime &runtime, bool required=true, bool activeOnly=false) const
Definition: ref.cpp:10
static const bool implicit
Definition: ref.hpp:25
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
static const bool implicit
Definition: ref.hpp:17