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

Method LoadAnimationFrameInfo

xuocore/uodata.cpp:1525–1539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1523}
1524
1525void 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
1541bool CFileManager::LoadAnimation(const AnimationState &anim, LoadPixelData16Cb pLoadFunc)
1542{

Callers 1

Calls 1

uo_animation_group_getFunction · 0.85

Tested by

no test coverage detected