21 lines
379 B
C++
21 lines
379 B
C++
#pragma once
|
|
|
|
#include "sol.hpp"
|
|
#include "ecs.h"
|
|
|
|
#include <iostream>
|
|
#include <utility>
|
|
|
|
namespace ecs::lua {
|
|
struct Wrapper : Component {
|
|
// @todo Figure out a more elegant way
|
|
Wrapper(sol::table _table) : Component(ComponentID::id<Wrapper>), table(_table) {}
|
|
Wrapper() : Component(ComponentID::id<Wrapper>) {}
|
|
|
|
sol::table table;
|
|
};
|
|
|
|
void init(sol::state& lua);
|
|
}
|
|
|