1. extern "C" {
  2. #include "lua.h"
  3. #include "lualib.h"
  4. #include "lauxlib.h"
  5. }
  6.  
  7.  
  8. class luai{
  9. public:
  10. bool CreateConsole();
  11. bool LoadLua();
  12. void Error(const char *);
  13. bool RunLuaScript(char *);
  14. bool RunLuaFile(char *);
  15. void SetFunctions();
  16. void SetVariables();
  17. bool isLoaded;
  18. void PrintConsole(char *);
  19. void AcceptInput();
  20. static lua_State *L;
  21. };