| 3 | namespace obe::Config::Templates |
| 4 | { |
| 5 | vili::parser::state getAnimationTemplates() |
| 6 | { |
| 7 | vili::parser::state state; |
| 8 | vili::node play_group = vili::object { { "command", play_group_command.data() }, |
| 9 | { "group", "" }, { "repeat", 1 } }; |
| 10 | state.push_template(play_group_command.data(), play_group); |
| 11 | vili::node wait |
| 12 | = vili::object { { "command", wait_command.data() }, { "time", 1.0 } }; |
| 13 | state.push_template(wait_command.data(), wait); |
| 14 | vili::node set_animation |
| 15 | = vili::object { { "command", set_animation_command.data() }, |
| 16 | { "animation", "" } }; |
| 17 | state.push_template(set_animation_command.data(), set_animation); |
| 18 | |
| 19 | // AnimationPlayMode enum |
| 20 | state.push_template("OneTime", "OneTime"); |
| 21 | state.push_template("Loop", "Loop"); |
| 22 | state.push_template("Force", "Force"); |
| 23 | return state; |
| 24 | } |
| 25 | } |
no test coverage detected