summaryrefslogtreecommitdiff
path: root/src/KingSystem/Sound/Actor/AI/aiSignaledSpotBgmTrigger.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2026-09-28 03:39:30 +0200
committerLéo Lam <leo@leolam.fr>2026-10-06 03:19:38 +0200
commita168b93bbcf603816bf718962fc4d706b5fc772d (patch)
treead3af063d67313243431beef39f4f58b6e6ce2b3 /src/KingSystem/Sound/Actor/AI/aiSignaledSpotBgmTrigger.cpp
parent7bc225838a580adea925fd56421f520db4c5d393 (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/aiSignaledSpotBgmTrigger.cpp')
-rw-r--r--src/KingSystem/Sound/Actor/AI/aiSignaledSpotBgmTrigger.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/KingSystem/Sound/Actor/AI/aiSignaledSpotBgmTrigger.cpp b/src/KingSystem/Sound/Actor/AI/aiSignaledSpotBgmTrigger.cpp
new file mode 100644
index 00000000..d9540710
--- /dev/null
+++ b/src/KingSystem/Sound/Actor/AI/aiSignaledSpotBgmTrigger.cpp
@@ -0,0 +1,26 @@
+#include "KingSystem/Sound/Actor/AI/aiSignaledSpotBgmTrigger.h"
+
+namespace ksys::snd {
+
+SignaledSpotBgmTrigger::SignaledSpotBgmTrigger(const InitArg& arg) : ksys::act::ai::Ai(arg) {}
+
+SignaledSpotBgmTrigger::~SignaledSpotBgmTrigger() = default;
+
+bool SignaledSpotBgmTrigger::init_(sead::Heap* heap) {
+ return ksys::act::ai::Ai::init_(heap);
+}
+
+void SignaledSpotBgmTrigger::enter_(ksys::act::ai::InlineParamPack* params) {
+ ksys::act::ai::Ai::enter_(params);
+}
+
+void SignaledSpotBgmTrigger::leave_() {
+ ksys::act::ai::Ai::leave_();
+}
+
+void SignaledSpotBgmTrigger::loadParams_() {
+ getMapUnitParam(&mIsStopWithoutReductionY_m, "IsStopWithoutReductionY");
+ getMapUnitParam(&mSound_m, "Sound");
+}
+
+} // namespace ksys::snd