mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-07-15 07:30:51 -05:00
19 lines
433 B
C++
19 lines
433 B
C++
#pragma once
|
|
#include "AppStates/AppState.hpp"
|
|
#include "System/Task.hpp"
|
|
|
|
class TaskState : public AppState
|
|
{
|
|
public:
|
|
template <typename... Args>
|
|
TaskState(void (*Function)(Args...), Args... Arguments) : m_Task(Function, std::forward<Args>(Arguments)...){};
|
|
~TaskState() {};
|
|
|
|
void Update(void);
|
|
void Render(void);
|
|
|
|
private:
|
|
// Underlying task.
|
|
System::Task m_Task;
|
|
};
|