mirror of
https://github.com/encounter/Petari.git
synced 2026-03-30 11:34:15 -07:00
24 lines
652 B
C++
24 lines
652 B
C++
#include "Game/Demo/DemoActionKeeper.hpp"
|
|
|
|
void DemoActionInfo::registerCast(LiveActor *pActor) {
|
|
mCastList[mCastCount] = pActor;
|
|
mCastCount++;
|
|
}
|
|
|
|
void DemoActionInfo::registerFunctor(const LiveActor *pActor, const MR::FunctorBase &rFunctor) {
|
|
for (s32 i = 0; i < mCastCount; i++) {
|
|
if (mCastList[i] == pActor) {
|
|
mFunctors[i] = rFunctor.clone(0);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
void DemoActionInfo::registerNerve(const LiveActor *pActor, const Nerve *pNerve) {
|
|
for (s32 i = 0; i < mCastCount; i++) {
|
|
if (mCastList[i] == pActor) {
|
|
mNerves[i] = pNerve;
|
|
return;
|
|
}
|
|
}
|
|
} |