mirror of
https://github.com/MonsterDruide1/OdysseyDecomp
synced 2026-05-10 09:18:01 +00:00
34 lines
773 B
C++
34 lines
773 B
C++
#include "Library/Nerve/NerveAction.h"
|
|
|
|
#include "Library/Nerve/NerveUtil.h"
|
|
|
|
namespace al {
|
|
NerveAction::NerveAction() {
|
|
alNerveFunction::NerveActionCollector* collector =
|
|
alNerveFunction::NerveActionCollector::sCurrentCollector;
|
|
if (!collector->mHead)
|
|
collector->mHead = this;
|
|
else
|
|
collector->mTail->mNextAction = this;
|
|
collector->mTail = this;
|
|
collector->mActionCount++;
|
|
}
|
|
} // namespace al
|
|
|
|
namespace alNerveFunction {
|
|
|
|
NerveActionCollector::NerveActionCollector() {
|
|
sCurrentCollector = this;
|
|
}
|
|
|
|
void NerveActionCollector::addNerve(al::NerveAction* action) {
|
|
if (!mHead)
|
|
mHead = action;
|
|
else
|
|
mTail->mNextAction = action;
|
|
mTail = action;
|
|
mActionCount++;
|
|
}
|
|
|
|
} // namespace alNerveFunction
|