| 1539 | } |
| 1540 | |
| 1541 | bool CFileManager::LoadAnimation(const AnimationState &anim, LoadPixelData16Cb pLoadFunc) |
| 1542 | { |
| 1543 | assert(anim.Group < MAX_ANIMATION_GROUPS_COUNT); |
| 1544 | auto &direction = g_Index.m_Anim[anim.Graphic].Groups[anim.Group].Direction[anim.Direction]; |
| 1545 | bool res = false; |
| 1546 | if (direction.Size != 0) |
| 1547 | { |
| 1548 | res = MulReadAnimationFrames(anim, pLoadFunc); |
| 1549 | } |
| 1550 | else |
| 1551 | { |
| 1552 | res = UopReadAnimationFrames(anim, pLoadFunc); |
| 1553 | } |
| 1554 | return res; |
| 1555 | } |
| 1556 | |
| 1557 | ANIMATION_GROUPS_TYPE uo_type_by_graphic(uint16_t graphic) |
| 1558 | { |