| 219 | } |
| 220 | |
| 221 | void Animation::loadMeta(vili::node& meta) |
| 222 | { |
| 223 | try |
| 224 | { |
| 225 | m_name = meta.at("name"); |
| 226 | } |
| 227 | catch (const vili::exceptions::unknown_child_node& e) |
| 228 | { |
| 229 | throw Exceptions::MissingAnimationProperty("Meta/name", EXC_INFO).nest(e); |
| 230 | } |
| 231 | Debug::Log->trace(" <Animation> Animation name = '{}'", m_name); |
| 232 | if (!meta["clock"].is_null()) |
| 233 | { |
| 234 | m_delay = meta.at("clock"); |
| 235 | Debug::Log->trace(" <Animation> Animation clock = {}", m_delay); |
| 236 | } |
| 237 | if (!meta["mode"].is_null()) |
| 238 | { |
| 239 | m_playMode = stringToAnimationPlayMode(meta.at("mode")); |
| 240 | Debug::Log->trace(" <Animation> Animation play-mode = '{}'", m_playMode); |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | void Animation::loadImages( |
| 245 | vili::node& images, const System::Path& path, Engine::ResourceManager* resources) |
no test coverage detected