| 1 | #include "Library/Layout/LayoutPartsActorKeeper.h" |
|---|---|
| 2 | |
| 3 | #include "Library/Layout/LayoutActor.h" |
| 4 | |
| 5 | namespace al { |
| 6 | void LayoutPartsActorKeeper::resisterPartsActor(LayoutActor* actor) { |
| 7 | mPartsActors[mNumActors] = actor; |
| 8 | mNumActors++; |
| 9 | } |
| 10 | |
| 11 | void LayoutPartsActorKeeper::appear() { |
| 12 | for (s32 i = 0; i < mNumActors; i++) |
| 13 | mPartsActors[i]->appear(); |
| 14 | } |
| 15 | |
| 16 | void LayoutPartsActorKeeper::calcAnim(bool recursive) { |
| 17 | for (s32 i = 0; i < mNumActors; i++) |
| 18 | mPartsActors[i]->calcAnim(recursive); |
| 19 | } |
| 20 | |
| 21 | LayoutPartsActorKeeper::LayoutPartsActorKeeper(s32 maxActors) : mMaxActors(maxActors) { |
| 22 | mPartsActors = new LayoutActor*[maxActors]; |
| 23 | } |
| 24 | } // namespace al |
| 25 |