2019-10-02 04:16:07 +00:00
|
|
|
#pragma once
|
2019-05-29 22:49:54 +00:00
|
|
|
|
|
|
|
#include "Effect.h"
|
|
|
|
#include "effect_clock.h"
|
2019-12-21 13:21:31 +00:00
|
|
|
#include "effect_timer.h"
|
2019-05-29 22:49:54 +00:00
|
|
|
|
2019-10-02 04:16:07 +00:00
|
|
|
struct EffectEntry {
|
|
|
|
const char* name;
|
|
|
|
bool use_in_cycle;
|
|
|
|
std::function<Effect*()> create;
|
|
|
|
};
|
|
|
|
extern const EffectEntry effects[];
|
|
|
|
extern const uint8_t effects_size;
|
2019-05-29 22:49:54 +00:00
|
|
|
|
|
|
|
extern Effect* current_effect;
|
|
|
|
extern ClockEffect effect_clock;
|
2019-12-21 13:21:31 +00:00
|
|
|
extern TimerEffect effect_timer;
|
2019-05-29 22:49:54 +00:00
|
|
|
|
2019-10-02 04:16:07 +00:00
|
|
|
Effect* select_effect(char* name);
|
|
|
|
Effect* select_effect(uint8_t id);
|
2019-06-18 16:14:59 +00:00
|
|
|
bool change_current_effect(String s);
|
2019-05-29 22:49:54 +00:00
|
|
|
void setup_effects();
|