mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
23 lines
494 B
C++
23 lines
494 B
C++
#ifndef GAME_SCRIPT_COMPILERCONTEXTSCRIPT_H
|
|
#define GAME_SCRIPT_COMPILERCONTEXTSCRIPT_H
|
|
|
|
#include "compilercontext.hpp"
|
|
|
|
namespace MWScript
|
|
{
|
|
/// Context for local scripts, global scripts and targetted scripts
|
|
|
|
class CompilerContextScript : public CompilerContext
|
|
{
|
|
public:
|
|
|
|
// Is the compiler allowed to declare local variables?
|
|
virtual bool canDeclareLocals() const
|
|
{
|
|
return true;
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|