mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
068a98b84f
Former-commit-id: 8953ef5fb4a0dfd12a4d94f69af6dbdd40aa20f7
18 lines
576 B
C++
18 lines
576 B
C++
// stl includes
|
|
#include <cctype>
|
|
#include <algorithm>
|
|
|
|
// Bootsequence includes
|
|
#include <bootsequence/BootSequenceFactory.h>
|
|
|
|
// Local Bootsequence includes
|
|
#include "EffectBootSequence.h"
|
|
|
|
BootSequence * BootSequenceFactory::createBootSequence(Hyperion * hyperion, const Json::Value & jsonConfig)
|
|
{
|
|
const std::string script = jsonConfig["script"].asString();
|
|
const Json::Value args = jsonConfig.get("args", Json::Value(Json::objectValue));
|
|
const unsigned duration = jsonConfig["duration_ms"].asUInt();
|
|
return new EffectBootSequence(hyperion, script, args, duration);
|
|
}
|