MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getAnimationTemplates

Function getAnimationTemplates

src/Core/Config/Templates/Animation.cpp:5–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace 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}

Callers 1

loadAnimationMethod · 0.85

Calls 2

push_templateMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected