You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 rivejä
393 B

  1. #pragma once
  2. #include "F:/Programmieren/Lua/sol2/single/single/include/sol/sol.hpp"
  3. #include <iostream>
  4. class LuaComponent
  5. {
  6. public:
  7. LuaComponent();
  8. LuaComponent(const std::string& fileName, sol::state* state);
  9. ~LuaComponent();
  10. void Init();
  11. void OnInit();
  12. void LoadScript(const std::string& fileName);
  13. public:
  14. std::string m_FileName;
  15. sol::environment m_Env;
  16. sol::state* state;
  17. };