mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-04-26 18:44:33 +00:00
25 lines
659 B
C++
25 lines
659 B
C++
#include "Library/Layout/LayoutPartsActorKeeper.h"
|
|
|
|
#include "Library/Layout/LayoutActor.h"
|
|
|
|
namespace al {
|
|
void LayoutPartsActorKeeper::resisterPartsActor(LayoutActor* actor) {
|
|
mPartsActors[mNumActors] = actor;
|
|
mNumActors++;
|
|
}
|
|
|
|
void LayoutPartsActorKeeper::appear() {
|
|
for (s32 i = 0; i < mNumActors; i++)
|
|
mPartsActors[i]->appear();
|
|
}
|
|
|
|
void LayoutPartsActorKeeper::calcAnim(bool recursive) {
|
|
for (s32 i = 0; i < mNumActors; i++)
|
|
mPartsActors[i]->calcAnim(recursive);
|
|
}
|
|
|
|
LayoutPartsActorKeeper::LayoutPartsActorKeeper(s32 maxActors) : mMaxActors(maxActors) {
|
|
mPartsActors = new LayoutActor*[maxActors];
|
|
}
|
|
} // namespace al
|