2013-12-01 16:35:45 +01:00
|
|
|
#include "EffectBootSequence.h"
|
|
|
|
|
2013-12-11 21:58:59 +01:00
|
|
|
EffectBootSequence::EffectBootSequence(Hyperion *hyperion, const EffectDefinition &effect, const unsigned duration_ms) :
|
2013-12-01 16:35:45 +01:00
|
|
|
BootSequence(),
|
|
|
|
_hyperion(hyperion),
|
2013-12-11 21:58:59 +01:00
|
|
|
_effect(effect),
|
2013-12-01 16:35:45 +01:00
|
|
|
_duration_ms(duration_ms)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
EffectBootSequence::~EffectBootSequence()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void EffectBootSequence::start()
|
|
|
|
{
|
2013-12-11 21:58:59 +01:00
|
|
|
_hyperion->setEffectScript(_effect.script, _effect.args, 0, _duration_ms);
|
2013-12-01 16:35:45 +01:00
|
|
|
}
|