summaryrefslogtreecommitdiff
path: root/src/KingSystem/Sound/Actor/Action/actionCustomDuckingStartAction.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/actionCustomDuckingStartAction.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/actionCustomDuckingStartAction.cpp')
-rw-r--r--src/KingSystem/Sound/Actor/Action/actionCustomDuckingStartAction.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/KingSystem/Sound/Actor/Action/actionCustomDuckingStartAction.cpp b/src/KingSystem/Sound/Actor/Action/actionCustomDuckingStartAction.cpp
new file mode 100644
index 00000000..1e63edb9
--- /dev/null
+++ b/src/KingSystem/Sound/Actor/Action/actionCustomDuckingStartAction.cpp
@@ -0,0 +1,23 @@
+#include "KingSystem/Sound/Actor/Action/actionCustomDuckingStartAction.h"
+
+namespace ksys::snd {
+
+CustomDuckingStartAction::CustomDuckingStartAction(const InitArg& arg)
+ : ksys::act::ai::Action(arg) {}
+
+CustomDuckingStartAction::~CustomDuckingStartAction() = default;
+
+bool CustomDuckingStartAction::init_(sead::Heap* heap) {
+ return ksys::act::ai::Action::init_(heap);
+}
+
+void CustomDuckingStartAction::loadParams_() {
+ getDynamicParam(&mVolume_d, "Volume");
+ getDynamicParam(&mFadeOutSec_d, "FadeOutSec");
+ getDynamicParam(&mFadeInSec_d, "FadeInSec");
+ getDynamicParam(&mStartDelaySec_d, "StartDelaySec");
+ getDynamicParam(&mTargetGroups_d, "TargetGroups");
+ getDynamicParam(&mExceptGroups_d, "ExceptGroups");
+}
+
+} // namespace ksys::snd