MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / LoopUpdate

Function LoopUpdate

src/SB/Core/x/xAnim.cpp:1416–1429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1414}
1415
1416static void LoopUpdate(xAnimSingle* single)
1417{
1418 F32 time = single->Time;
1419 F32 duration = single->State->Data->Duration;
1420
1421 if (time > duration)
1422 {
1423 single->Time = duration;
1424
1425 EffectSingleLoop(single);
1426
1427 single->Time = time - duration;
1428 }
1429}
1430
1431void xAnimPlaySetState(xAnimSingle* single, xAnimState* state, F32 startTime)
1432{

Callers 1

SingleUpdateFunction · 0.85

Calls 1

EffectSingleLoopFunction · 0.70

Tested by

no test coverage detected