diff options
Diffstat (limited to 'src/components/runnable.h')
| -rw-r--r-- | src/components/runnable.h | 15 |
1 files changed, 15 insertions, 0 deletions
| diff --git a/src/components/runnable.h b/src/components/runnable.h new file mode 100644 index 0000000..1b994fb --- /dev/null +++ b/src/components/runnable.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef AUTOMATABLE_H_3D519131 | ||
| 2 | #define AUTOMATABLE_H_3D519131 | ||
| 3 | |||
| 4 | #include "component.h" | ||
| 5 | #include <sol.hpp> | ||
| 6 | #include <memory> | ||
| 7 | |||
| 8 | class RunnableComponent : public Component { | ||
| 9 | public: | ||
| 10 | |||
| 11 | std::unique_ptr<sol::thread> runner; | ||
| 12 | std::unique_ptr<sol::coroutine> callable; | ||
| 13 | }; | ||
| 14 | |||
| 15 | #endif /* end of include guard: AUTOMATABLE_H_3D519131 */ | ||
