Files
tp/libs/SSystem/SComponent/c_bg_s_chk.cpp
T
TakaRikka e915df66c8 move d_a_alink and some related stuff (#130)
* clean up d_a_player

* move some of daalink

* more daalink / daplayer

* setup some daalink members

* rest of daalink members setup

* remove comment

* few more matches

* remove asm

* more matches

* more matches + move e_wb_class

* fix some d_save classes

Co-authored-by: lepelog <lepelog@users.noreply.github.com>
2021-05-23 12:09:59 +02:00

40 lines
1.0 KiB
C++

//
// Generated By: dol2asm
// Translation Unit: c_bg_s_chk
//
#include "SSystem/SComponent/c_bg_s_chk.h"
#include "dol2asm.h"
#include "dolphin/types.h"
//
// Declarations:
//
/* 80267B4C-80267B70 26248C 0024+00 0/0 7/7 0/0 .text __ct__8cBgS_ChkFv */
cBgS_Chk::cBgS_Chk(void) {
mPolyPassChk = 0;
mGrpPassChk = 0;
unk_0x0C = 1;
}
/* 80267B70-80267BB8 2624B0 0048+00 1/0 7/7 0/0 .text __dt__8cBgS_ChkFv */
cBgS_Chk::~cBgS_Chk(void) {}
/* 80267BB8-80267BDC 2624F8 0024+00 0/0 4/4 0/0 .text SetExtChk__8cBgS_ChkFR8cBgS_Chk */
void cBgS_Chk::SetExtChk(cBgS_Chk& pOther) {
mPolyPassChk = pOther.mPolyPassChk;
mGrpPassChk = pOther.mGrpPassChk;
mActorPid = pOther.mActorPid;
unk_0x0C = pOther.unk_0x0C;
}
/* 80267BDC-80267C1C 26251C 0040+00 0/0 7/7 0/0 .text ChkSameActorPid__8cBgS_ChkCFUi */
bool cBgS_Chk::ChkSameActorPid(unsigned int pUint) const {
if (mActorPid == -1 || pUint == UINT32_MAX || unk_0x0C == 0) {
return 0;
} else {
return (mActorPid == pUint) ? 1 : 0;
}
}