Browse Source

Add lua component

master
Riyyi 4 years ago
parent
commit
246c683cd6
  1. 12
      inferno/src/inferno/scene/components.h

12
inferno/src/inferno/scene/components.h

@ -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);

Loading…
Cancel
Save