| 319 | static std::unordered_map<uint32_t, uint32_t> s_AnimationLifetime; |
| 320 | |
| 321 | AnimationDirFrames *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 | |
| 336 | void CAnimationManager::ClearUnusedAnimations(uint32_t ticks) |
| 337 | { |
no test coverage detected