2012-09-02 17:55:08 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
extern "C" {
|
2012-09-03 19:09:53 -05:00
|
|
|
#include "lua5.1/lua.h"
|
|
|
|
#include "lua5.1/lauxlib.h"
|
|
|
|
#include "lua5.1/lualib.h"
|
2012-09-02 17:55:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#include "LuaLuna.h"
|
|
|
|
|
|
|
|
namespace ui
|
|
|
|
{
|
|
|
|
class Component;
|
|
|
|
}
|
|
|
|
|
|
|
|
class LuaScriptInterface;
|
|
|
|
|
|
|
|
class LuaComponent
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
ui::Component * component;
|
|
|
|
lua_State * l;
|
|
|
|
int position(lua_State * l);
|
|
|
|
int size(lua_State * l);
|
|
|
|
int visible(lua_State * l);
|
|
|
|
public:
|
|
|
|
LuaScriptInterface * ci;
|
|
|
|
int UserData;
|
|
|
|
|
|
|
|
ui::Component * GetComponent() { return component; }
|
|
|
|
LuaComponent(lua_State * l);
|
|
|
|
~LuaComponent();
|
|
|
|
};
|