SMG-Decomp
A decompilation of Super Mario Galaxy 1
Loading...
Searching...
No Matches
DemoActionKeeper.cpp
1#include "Game/Demo/DemoActionKeeper.hpp"
2
3void DemoActionInfo::registerCast(LiveActor *pActor) {
4 mCastList[mCastCount] = pActor;
5 mCastCount++;
6}
7
8void DemoActionInfo::registerFunctor(const LiveActor *pActor, const MR::FunctorBase &rFunctor) {
9 for (s32 i = 0; i < mCastCount; i++) {
10 if (mCastList[i] == pActor) {
11 mFunctors[i] = rFunctor.clone(0);
12 return;
13 }
14 }
15}
16
17void DemoActionInfo::registerNerve(const LiveActor *pActor, const Nerve *pNerve) {
18 for (s32 i = 0; i < mCastCount; i++) {
19 if (mCastList[i] == pActor) {
20 mNerves[i] = pNerve;
21 return;
22 }
23 }
24}
The basis of a drawable actor that can contain states (see: Nerve)
Definition LiveActor.hpp:24
Used for executing states of a LiveActor.
Definition Nerve.hpp:6