您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

22 行
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. };