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

Method loadMeta

src/Core/Animation/Animation.cpp:221–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

loadAnimationMethod · 0.95

Calls 6

nestMethod · 0.80
traceMethod · 0.80
atMethod · 0.45
is_nullMethod · 0.45

Tested by

no test coverage detected