mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-29 05:17:58 +03:00
added Enable, Disable, GetDisabled
This commit is contained in:
parent
4ecb63203b
commit
592fa84e2d
22 changed files with 310 additions and 12 deletions
|
@ -130,6 +130,37 @@ namespace Interpreter
|
|||
runtime.push (*reinterpret_cast<Type_Data *> (&duration));
|
||||
}
|
||||
};
|
||||
|
||||
class OpEnable : public Opcode0
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void execute (Runtime& runtime)
|
||||
{
|
||||
runtime.getContext().enable();
|
||||
}
|
||||
};
|
||||
|
||||
class OpDisable : public Opcode0
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void execute (Runtime& runtime)
|
||||
{
|
||||
runtime.getContext().disable();
|
||||
}
|
||||
};
|
||||
|
||||
class OpGetDisabled : public Opcode0
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void execute (Runtime& runtime)
|
||||
{
|
||||
runtime.push (runtime.getContext().isDisabled());
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue