Fabian Schlenz
e2a56d7c29
All checks were successful
continuous-integration/drone/push Build is passing
23 lines
484 B
C++
23 lines
484 B
C++
#pragma once
|
|
|
|
#include "Effect.h"
|
|
#include "effect_clock.h"
|
|
#include "effect_timer.h"
|
|
|
|
struct EffectEntry {
|
|
const char* name;
|
|
bool use_in_cycle;
|
|
std::function<Effect*()> create;
|
|
};
|
|
extern const EffectEntry effects[];
|
|
extern const uint8_t effects_size;
|
|
|
|
extern Effect* current_effect;
|
|
extern ClockEffect effect_clock;
|
|
extern TimerEffect effect_timer;
|
|
|
|
Effect* select_effect(char* name);
|
|
Effect* select_effect(uint8_t id);
|
|
bool change_current_effect(String s);
|
|
void setup_effects();
|