summaryrefslogtreecommitdiff
path: root/src/KingSystem/Sound/Actor/Action/actionSpotBgmTriggerAction.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/Action/actionSpotBgmTriggerAction.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/Action/actionSpotBgmTriggerAction.cpp')
-rw-r--r--src/KingSystem/Sound/Actor/Action/actionSpotBgmTriggerAction.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/KingSystem/Sound/Actor/Action/actionSpotBgmTriggerAction.cpp b/src/KingSystem/Sound/Actor/Action/actionSpotBgmTriggerAction.cpp
new file mode 100644
index 00000000..8cf51b3b
--- /dev/null
+++ b/src/KingSystem/Sound/Actor/Action/actionSpotBgmTriggerAction.cpp
@@ -0,0 +1,31 @@
+#include "KingSystem/Sound/Actor/Action/actionSpotBgmTriggerAction.h"
+
+namespace ksys::snd {
+
+SpotBgmTriggerAction::SpotBgmTriggerAction(const InitArg& arg) : ksys::act::ai::Action(arg) {}
+
+SpotBgmTriggerAction::~SpotBgmTriggerAction() = default;
+
+bool SpotBgmTriggerAction::init_(sead::Heap* heap) {
+ return ksys::act::ai::Action::init_(heap);
+}
+
+void SpotBgmTriggerAction::enter_(ksys::act::ai::InlineParamPack* params) {
+ ksys::act::ai::Action::enter_(params);
+}
+
+void SpotBgmTriggerAction::leave_() {
+ ksys::act::ai::Action::leave_();
+}
+
+void SpotBgmTriggerAction::loadParams_() {
+ getDynamicParam(&mSound_d, "Sound");
+ getMapUnitParam(&mIsStopWithoutReductionY_m, "IsStopWithoutReductionY");
+ getMapUnitParam(&mSound_m, "Sound");
+}
+
+void SpotBgmTriggerAction::calc_() {
+ ksys::act::ai::Action::calc_();
+}
+
+} // namespace ksys::snd