diff options
| author | Léo Lam <leo@leolam.fr> | 2026-09-28 03:39:30 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2026-10-06 03:19:38 +0200 |
| commit | a168b93bbcf603816bf718962fc4d706b5fc772d (patch) | |
| tree | ad3af063d67313243431beef39f4f58b6e6ce2b3 /src/KingSystem/Sound/Actor/AI/aiSpotBgmTrigger.cpp | |
| parent | 7bc225838a580adea925fd56421f520db4c5d393 (diff) | |
snd: move sound actions and AIs to KingSystem/Sound
They link with KingSystem/Sound (0x7100fe8b54-0x7101060ed4) as sorted
Action/AI passes of their own. The three area tag actions keep their
game base AreaTagAction, which links in the Game/Actor/Area block.
(AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Diffstat (limited to 'src/KingSystem/Sound/Actor/AI/aiSpotBgmTrigger.cpp')
| -rw-r--r-- | src/KingSystem/Sound/Actor/AI/aiSpotBgmTrigger.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/KingSystem/Sound/Actor/AI/aiSpotBgmTrigger.cpp b/src/KingSystem/Sound/Actor/AI/aiSpotBgmTrigger.cpp new file mode 100644 index 00000000..78e730c8 --- /dev/null +++ b/src/KingSystem/Sound/Actor/AI/aiSpotBgmTrigger.cpp @@ -0,0 +1,26 @@ +#include "KingSystem/Sound/Actor/AI/aiSpotBgmTrigger.h" + +namespace ksys::snd { + +SpotBgmTrigger::SpotBgmTrigger(const InitArg& arg) : ksys::act::ai::Ai(arg) {} + +SpotBgmTrigger::~SpotBgmTrigger() = default; + +bool SpotBgmTrigger::init_(sead::Heap* heap) { + return ksys::act::ai::Ai::init_(heap); +} + +void SpotBgmTrigger::enter_(ksys::act::ai::InlineParamPack* params) { + ksys::act::ai::Ai::enter_(params); +} + +void SpotBgmTrigger::leave_() { + ksys::act::ai::Ai::leave_(); +} + +void SpotBgmTrigger::loadParams_() { + getMapUnitParam(&mIsStopWithoutReductionY_m, "IsStopWithoutReductionY"); + getMapUnitParam(&mSound_m, "Sound"); +} + +} // namespace ksys::snd |
