mirror of
https://github.com/zeldaret/botw
synced 2026-05-26 15:45:05 -04:00
28 lines
707 B
C++
28 lines
707 B
C++
#include "KingSystem/ActorSystem/actAiRoot.h"
|
|
|
|
namespace ksys::act::ai {
|
|
|
|
RootAi::RootAi(const InitArg& arg) : Ai(arg) {
|
|
mBehaviorsByStopAndCalcTiming[0].fill({});
|
|
mBehaviorsByStopAndCalcTiming[1].fill({});
|
|
}
|
|
|
|
RootAi::~RootAi() {
|
|
mQueries.finalize();
|
|
mBehaviors.finalize();
|
|
mAis.finalize();
|
|
mActions.finalize();
|
|
if (_140)
|
|
delete _140;
|
|
}
|
|
|
|
bool RootAi::loadMapUnitParams(const AIDef& def, sead::Heap* heap) {
|
|
return mMapUnitParams.load(*mActor, def, heap, AIDefInstParamKind::MapUnit);
|
|
}
|
|
|
|
bool RootAi::loadAITreeParams(const AIDef& def, sead::Heap* heap) {
|
|
return mAiTreeParams.load(*mActor, def, heap, AIDefInstParamKind::AITree);
|
|
}
|
|
|
|
} // namespace ksys::act::ai
|