view Engine/LuaVM.h @ 2526:b1c516bf1102

IRender c-tor
author a.parshin
date Fri, 10 Oct 2014 19:23:27 +0300
parents 68cdef6879a0
children
line wrap: on
line source

#pragma once

class LuaVM
{
  public:
    inline LuaVM(): L(nullptr) {}

    void Initialize();
    bool DoFile(const char *filename);

  protected:
    struct lua_State *L;
    
    const char *GetScriptFileLocation(const char *script_name);
};
extern LuaVM *lua;