added local script compiling
parent
2064c43d89
commit
076b01559f
@ -0,0 +1,15 @@
|
||||
#ifndef GAME_SCRIPT_COMPILERCONTEXT_H
|
||||
#define GAME_SCRIPT_COMPILERCONTEXT_H
|
||||
|
||||
#include <components/compiler/context.hpp>
|
||||
|
||||
namespace MWScript
|
||||
{
|
||||
class CompilerContext : public Compiler::Context
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
#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
|
Loading…
Reference in New Issue