Add lua component

This commit is contained in:
Riyyi
2021-01-24 02:15:15 +01:00
parent 2cf42c7dea
commit 246c683cd6
+12
View File
@@ -15,6 +15,8 @@
namespace Inferno { namespace Inferno {
class Lua;
struct TagComponent { struct TagComponent {
std::string tag; std::string tag;
@@ -80,6 +82,16 @@ namespace Inferno {
} }
}; };
struct LuaScriptComponent {
Lua* instance = nullptr;
std::string path;
// Dont allow manually setting instance during construction
LuaScriptComponent() {}
LuaScriptComponent(const std::string& path)
: path(path) {}
};
// ---------------------------------------- // ----------------------------------------
const LogStream& operator<<(const LogStream& stream, const TransformComponent& value); const LogStream& operator<<(const LogStream& stream, const TransformComponent& value);