This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/lua/LuaComponent.h
2019-04-09 15:28:40 +02:00

36 lines
563 B
C++

#pragma once
#include "LuaLuna.h"
#include "LuaSmartRef.h"
namespace ui
{
class Component;
}
class LuaScriptInterface;
class LuaComponentCallback : public LuaSmartRef
{
public:
using LuaSmartRef::LuaSmartRef;
int CheckAndAssignArg1();
};
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 owner_ref;
ui::Component * GetComponent() { return component; }
LuaComponent(lua_State * l);
~LuaComponent();
};