| 13 | namespace 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 | { |
no test coverage detected