MCPcopy Create free account
hub / github.com/crossuo/crossuo / ExecuteAnimation

Method ExecuteAnimation

src/Managers/AnimationManager.cpp:321–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319static std::unordered_map<uint32_t, uint32_t> s_AnimationLifetime;
320
321AnimationDirFrames *CAnimationManager::ExecuteAnimation(AnimationState anim, uint32_t ticks)
322{
323 Anim = anim;
324 auto animation = uo_animation_get(anim);
325 if (animation == nullptr)
326 {
327 if (g_FileManager.LoadAnimation(Anim, LoadSpritePixels))
328 {
329 animation = uo_animation_get(anim);
330 }
331 }
332 s_AnimationLifetime[AnimId(anim)] = ticks;
333 return animation;
334}
335
336void CAnimationManager::ClearUnusedAnimations(uint32_t ticks)
337{

Callers 3

QFORFunction · 0.80
PrepareTexturesMethod · 0.80
DrawMethod · 0.80

Calls 3

uo_animation_getFunction · 0.85
AnimIdFunction · 0.85
LoadAnimationMethod · 0.80

Tested by

no test coverage detected