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

Method LoadAnimation

xuocore/uodata.cpp:1541–1555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1539}
1540
1541bool 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
1557ANIMATION_GROUPS_TYPE uo_type_by_graphic(uint16_t graphic)
1558{

Callers 1

ExecuteAnimationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected