Add lua component
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
|
||||
namespace Inferno {
|
||||
|
||||
class Lua;
|
||||
|
||||
struct TagComponent {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user