mirror of
https://github.com/zeldaret/st
synced 2026-09-02 09:51:55 -04:00
1a098fe4b9
* feat: decompiling ActorUnkSnow * feat: rename function to vfunc_18 * refactor: remove unused ActorUnkSWON_c4 * refactor: use union field Co-authored-by: Yanis <35189056+Yanis002@users.noreply.github.com> * mark as completed and match jp * fix build issues --------- Co-authored-by: Yanis <35189056+Yanis002@users.noreply.github.com>
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
#include "Actor/ActorUnkSWON.hpp"
|
|
#include "System/SysNew.hpp"
|
|
|
|
ARM DECL_PROFILE(ActorProfileUnkSWON);
|
|
|
|
ARM Actor *ActorProfileUnkSWON::Create() {
|
|
return new(HeapIndex_2) ActorUnkSWON();
|
|
}
|
|
|
|
ARM ActorProfileUnkSWON::ActorProfileUnkSWON() :
|
|
ActorProfile(ActorId_SWON) {}
|
|
|
|
ARM ActorUnkSWON::ActorUnkSWON() {}
|
|
|
|
ARM bool ActorUnkSWON::vfunc_18(unk32 param_1) {
|
|
switch (this->mUnk_5C.mParams[0]) {
|
|
case 0x0:
|
|
if (!this->func_ov000_02098a60(0x1)) {
|
|
this->func_ov000_02098a88(0x0, 0x1);
|
|
}
|
|
this->func_ov000_020984d0();
|
|
this->func_ov000_020984f0();
|
|
if (this->mUnk_5C.mUnk_1C_0) {
|
|
this->func_ov000_02098a88(0x1, 0x1);
|
|
}
|
|
break;
|
|
case 0x1:
|
|
if (!this->func_ov000_02098a60(0x1)) {
|
|
this->func_ov000_02098a88(0x0, 0x1);
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
ARM ActorUnkSWON::~ActorUnkSWON() {}
|
|
ARM ActorProfileUnkSWON::~ActorProfileUnkSWON() {}
|