Component now stores whether or not it is a runtime component

This commit is contained in:
2019-06-26 23:39:07 +02:00
parent 7d55563ec8
commit 5229dc6e76
4 changed files with 26 additions and 18 deletions

View File

@@ -7,10 +7,10 @@
#include <utility>
namespace ecs::lua {
struct Wrapper : TaggedComponent {
struct Wrapper : Component {
// @todo Figure out a more elegant way
Wrapper(sol::table _table) : TaggedComponent(get_typename<Wrapper>()), table(_table) {}
Wrapper() : TaggedComponent(get_typename<Wrapper>()) {}
Wrapper(sol::table _table) : Component(ComponentID::id<Wrapper>), table(_table) {}
Wrapper() : Component(ComponentID::id<Wrapper>) {}
sol::table table;
};