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