2021-03-28 01:19:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-03-29 08:10:55 +00:00
|
|
|
#include <Figment.h>
|
2021-03-28 01:19:55 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class Sequencer: public Task {
|
|
|
|
public:
|
|
|
|
|
|
|
|
class Scene {
|
|
|
|
public:
|
|
|
|
const char* name;
|
|
|
|
std::vector<const char*> patterns;
|
|
|
|
};
|
|
|
|
|
|
|
|
Sequencer(std::vector<Scene> &&scenes);
|
|
|
|
|
|
|
|
void loop() override;
|
|
|
|
void handleEvent(const InputEvent& evt) override;
|
|
|
|
|
|
|
|
const char* currentSceneName();
|
|
|
|
const std::vector<Scene> scenes() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
int m_idx = 0;
|
|
|
|
std::vector<Scene> m_scenes;
|
|
|
|
};
|