LuaScriptModule.h 759 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * LuaScriptModule.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../../lib/CScriptingModule.h"
  12. namespace scripting
  13. {
  14. class LuaScriptModule : public Module
  15. {
  16. public:
  17. LuaScriptModule();
  18. virtual ~LuaScriptModule();
  19. std::string compile(const std::string & name, const std::string & source, vstd::CLoggerBase * logger) const override;
  20. std::shared_ptr<ContextBase> createContextFor(const Script * source, const Environment * env) const override;
  21. void registerSpellEffect(spells::effects::Registry * registry, const Script * source) const override;
  22. private:
  23. };
  24. }