Component now stores whether or not it is a runtime component
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user