Files
tp/libs/SSystem/SComponent/c_bg_s_poly_info.cpp
T

71 lines
2.1 KiB
C++
Raw Normal View History

2021-04-01 02:07:58 +02:00
//
2021-03-28 22:49:05 +02:00
// Generated By: dol2asm
// Translation Unit: c_bg_s_poly_info
2021-04-01 02:07:58 +02:00
//
2021-01-07 02:04:53 +01:00
2021-04-01 02:07:58 +02:00
#include "SSystem/SComponent/c_bg_s_poly_info.h"
2021-03-28 22:49:05 +02:00
#include "dol2asm.h"
#include "dolphin/types.h"
2021-01-07 02:04:53 +01:00
2021-04-06 18:00:35 +02:00
/* 80268074-802680B0 2629B4 003C+00 0/0 7/7 9/9 .text __ct__13cBgS_PolyInfoFv */
2021-11-10 10:56:51 -08:00
cBgS_PolyInfo::cBgS_PolyInfo() {
2021-04-08 22:18:35 +02:00
this->ClearPi();
2021-01-07 02:04:53 +01:00
}
2021-04-06 18:00:35 +02:00
/* 802680B0-802680F8 2629F0 0048+00 1/0 10/10 393/393 .text __dt__13cBgS_PolyInfoFv */
2021-11-10 10:56:51 -08:00
cBgS_PolyInfo::~cBgS_PolyInfo() {}
2021-01-07 02:04:53 +01:00
2021-04-06 18:00:35 +02:00
/* 802680F8-80268120 262A38 0028+00 0/0 4/4 0/0 .text ChkSetInfo__13cBgS_PolyInfoCFv */
2021-11-10 10:56:51 -08:00
bool cBgS_PolyInfo::ChkSetInfo() const {
if (mPolyIndex == 0xFFFF || mBgIndex == 0x100) {
2021-04-08 22:18:35 +02:00
return false;
} else {
return true;
}
2021-01-07 02:04:53 +01:00
}
2021-04-06 18:00:35 +02:00
/* 80268120-80268148 262A60 0028+00 1/1 11/11 0/0 .text ClearPi__13cBgS_PolyInfoFv */
2021-11-10 10:56:51 -08:00
void cBgS_PolyInfo::ClearPi() {
2021-04-08 22:18:35 +02:00
mPolyIndex = 0xFFFF;
2021-11-10 10:56:51 -08:00
mBgIndex = 0x100;
2021-04-08 22:18:35 +02:00
unk_0x04 = 0;
unk_0x08 = -1;
2021-01-07 02:04:53 +01:00
}
2021-04-06 18:00:35 +02:00
/* 80268148-8026816C 262A88 0024+00 0/0 11/11 1/1 .text
2021-04-01 02:07:58 +02:00
* SetPolyInfo__13cBgS_PolyInfoFRC13cBgS_PolyInfo */
2021-04-08 22:18:35 +02:00
void cBgS_PolyInfo::SetPolyInfo(const cBgS_PolyInfo& pOther) {
mPolyIndex = pOther.mPolyIndex;
2021-11-10 10:56:51 -08:00
mBgIndex = pOther.mBgIndex;
2021-04-08 22:18:35 +02:00
unk_0x04 = pOther.unk_0x04;
unk_0x08 = pOther.unk_0x08;
2021-01-07 02:04:53 +01:00
}
2021-03-28 22:49:05 +02:00
2021-04-06 18:00:35 +02:00
/* 8026816C-8026817C 262AAC 0010+00 0/0 6/6 0/0 .text SetActorInfo__13cBgS_PolyInfoFiPvUi
*/
2021-04-08 22:18:35 +02:00
void cBgS_PolyInfo::SetActorInfo(int param_1, void* param_2, unsigned int param_3) {
2021-11-10 10:56:51 -08:00
mBgIndex = param_1;
2021-04-08 22:18:35 +02:00
unk_0x04 = param_2;
unk_0x08 = param_3;
2021-03-28 22:49:05 +02:00
}
2021-04-06 18:00:35 +02:00
/* 8026817C-802681A4 262ABC 0028+00 0/0 1/1 0/0 .text ChkSafe__13cBgS_PolyInfoCFPCvUi */
2021-04-08 22:18:35 +02:00
bool cBgS_PolyInfo::ChkSafe(const void* param_1, unsigned int param_2) const {
if (unk_0x04 == param_1 && unk_0x08 == param_2) {
return true;
} else {
return false;
}
2021-03-28 22:49:05 +02:00
}
2021-04-06 18:00:35 +02:00
/* 802681A4-802681AC 262AE4 0008+00 0/0 11/11 0/0 .text SetPolyIndex__13cBgS_PolyInfoFi
*/
2021-04-08 22:18:35 +02:00
void cBgS_PolyInfo::SetPolyIndex(int pPolyIndex) {
mPolyIndex = pPolyIndex;
2021-03-28 22:49:05 +02:00
}
2021-04-06 18:00:35 +02:00
/* 802681AC-802681C0 262AEC 0014+00 0/0 3/3 0/0 .text ChkBgIndex__13cBgS_PolyInfoCFv */
2021-11-10 10:56:51 -08:00
bool cBgS_PolyInfo::ChkBgIndex() const {
return mBgIndex != 0x100;
2021-03-28 22:49:05 +02:00
}