The-Powder-Toy/src/cat/LuaComponent.h
2013-05-11 15:08:32 +04:00

34 lines
492 B
C++

#pragma once
extern "C" {
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
}
#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();
};