| 1523 | } |
| 1524 | |
| 1525 | void CFileManager::LoadAnimationFrameInfo( |
| 1526 | AnimationFrameInfo &result, const AnimationState &anim, uint8_t frameIndex, bool isCorpse) |
| 1527 | { |
| 1528 | assert(anim.Group < MAX_ANIMATION_GROUPS_COUNT); |
| 1529 | auto &direction = g_Index.m_Anim[anim.Graphic].Groups[anim.Group].Direction[0]; |
| 1530 | if (direction.Size != 0) |
| 1531 | { |
| 1532 | MulReadAnimationFrameInfo(result, direction, frameIndex, isCorpse); |
| 1533 | } |
| 1534 | else |
| 1535 | { |
| 1536 | auto file = uo_animation_group_get(anim); |
| 1537 | UopReadAnimationFrameInfo(result, direction, file, isCorpse); |
| 1538 | } |
| 1539 | } |
| 1540 | |
| 1541 | bool CFileManager::LoadAnimation(const AnimationState &anim, LoadPixelData16Cb pLoadFunc) |
| 1542 | { |
no test coverage detected