summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormike8699 <mikebuntu68@gmail.com>2025-04-29 20:21:01 -0400
committermike8699 <mikebuntu68@gmail.com>2025-05-31 19:36:20 -0400
commitb121c829b7ad7dfdef56c0e007e4fd470c1a7dfc (patch)
tree079cabbe177d5f143cd7ecda6433c9ec525783d8 /src
parent51e0e6ae1614fb4c0a66cf8c615c1c8834addf4b (diff)
Decompile `ActorSwitchObject::func_ov000_0208fc10`
Diffstat (limited to 'src')
-rw-r--r--src/00_Core/Actor/Dungeon/ActorSwitchObject.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/00_Core/Actor/Dungeon/ActorSwitchObject.cpp b/src/00_Core/Actor/Dungeon/ActorSwitchObject.cpp
index 886d32a9..eab92dcc 100644
--- a/src/00_Core/Actor/Dungeon/ActorSwitchObject.cpp
+++ b/src/00_Core/Actor/Dungeon/ActorSwitchObject.cpp
@@ -18,7 +18,26 @@ bool ActorSwitchObject::vfunc_0c() {
void ActorSwitchObject::vfunc_14(u32 param1) {}
void ActorSwitchObject::vfunc_18(u32 param1) {}
-bool ActorSwitchObject::func_ov000_0208fc10(s32 param1) {}
+
+bool ActorSwitchObject::func_ov000_0208fc10(s32 param1) {
+ this->mUnk_130 = param1;
+
+ switch (param1) {
+ case 0: this->func_ov00_020c1c20(0, 0); break;
+ case 1:
+ this->func_ov00_020c1c20(0, 1);
+ if (this->mUnk_158 == 0) {
+ this->mAlive = false;
+ }
+ break;
+ case 2:
+ this->func_ov000_0208fef8();
+ this->mActiveFrames = 0;
+ break;
+ }
+
+ return true;
+}
void ActorSwitchObject::func_ov000_0208fc7c() {
this->mUnk_158 = this->mUnk_020.mUnk_00[1];