view LuaVM.h @ 2054:62a27b2cfcc2

Player.swig
author Nomad
date Sat, 30 Nov 2013 21:00:37 +0200
parents 71a814f4482a
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;