MCPcopy Create free account
hub / github.com/doldecomp/mkdd / setAnimation

Method setAnimation

libs/JSystem/J2DGraph/J2DScreen.cpp:434–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434void J2DScreen::setAnimation(J2DAnmColor* animation)
435{
436 animation->searchUpdateMaterialID(this);
437 u16 count = animation->getUpdateMaterialNum();
438 for (u16 i = 0; i < count; i++) {
439 if (animation->getUpdateMaterialID(i) < mMaterialCount) {
440 mMaterials[animation->getUpdateMaterialID(i)].setAnimation(animation);
441 }
442 }
443}
444
445void J2DScreen::setAnimation(J2DAnmTextureSRTKey* animation)
446{

Callers

nothing calls this directly

Calls 7

getUpdateMaterialNumMethod · 0.45
getUpdateMaterialIDMethod · 0.45

Tested by

no test coverage detected