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

Function stringToAnimationPlayMode

src/Core/Animation/Animation.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace obe::Animation
14{
15 AnimationPlayMode stringToAnimationPlayMode(const std::string& animationPlayMode)
16 {
17 if (animationPlayMode == "OneTime")
18 return AnimationPlayMode::OneTime;
19 if (animationPlayMode == "Loop")
20 return AnimationPlayMode::Loop;
21 if (animationPlayMode == "Force")
22 return AnimationPlayMode::Force;
23 throw Exceptions::UnknownAnimationPlayMode(animationPlayMode, EXC_INFO);
24 }
25
26 std::ostream& operator<<(std::ostream& os, const AnimationPlayMode& m)
27 {

Callers 1

loadMetaMethod · 0.85

Calls 1

Tested by

no test coverage detected