mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 12:39:27 -04:00
tag_allmato almost, swhit0 treesh swball done, misc cleanup (#2312)
* d_a_tag_allmato almost done * d_a_swhit0 done * some SSystem cleanup * treesh done * swball done, some other rel cleanup
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "SSystem/SComponent/c_bg_s_poly_info.h"
|
||||
#include "JSystem/JUtility/JUTAssert.h"
|
||||
|
||||
/* 80268074-802680B0 2629B4 003C+00 0/0 7/7 9/9 .text __ct__13cBgS_PolyInfoFv */
|
||||
cBgS_PolyInfo::cBgS_PolyInfo() {
|
||||
@@ -33,22 +34,20 @@ void cBgS_PolyInfo::ClearPi() {
|
||||
/* 80268148-8026816C 262A88 0024+00 0/0 11/11 1/1 .text
|
||||
* SetPolyInfo__13cBgS_PolyInfoFRC13cBgS_PolyInfo */
|
||||
void cBgS_PolyInfo::SetPolyInfo(const cBgS_PolyInfo& poly) {
|
||||
mPolyIndex = poly.mPolyIndex;
|
||||
mBgIndex = poly.mBgIndex;
|
||||
unk_0x04 = poly.unk_0x04;
|
||||
mActorId = poly.mActorId;
|
||||
*this = poly;
|
||||
}
|
||||
|
||||
/* 8026816C-8026817C 262AAC 0010+00 0/0 6/6 0/0 .text SetActorInfo__13cBgS_PolyInfoFiPvUi
|
||||
*/
|
||||
void cBgS_PolyInfo::SetActorInfo(int bg_index, void* p_data, unsigned int actor_id) {
|
||||
void cBgS_PolyInfo::SetActorInfo(int bg_index, void* p_data, fpc_ProcID actor_id) {
|
||||
JUT_ASSERT(74, 0 <= bg_index);
|
||||
mBgIndex = bg_index;
|
||||
unk_0x04 = p_data;
|
||||
mActorId = actor_id;
|
||||
}
|
||||
|
||||
/* 8026817C-802681A4 262ABC 0028+00 0/0 1/1 0/0 .text ChkSafe__13cBgS_PolyInfoCFPCvUi */
|
||||
bool cBgS_PolyInfo::ChkSafe(const void* param_1, unsigned int actor_id) const {
|
||||
bool cBgS_PolyInfo::ChkSafe(const void* param_1, fpc_ProcID actor_id) const {
|
||||
if (unk_0x04 == param_1 && mActorId == actor_id) {
|
||||
return true;
|
||||
} else {
|
||||
@@ -59,10 +58,15 @@ bool cBgS_PolyInfo::ChkSafe(const void* param_1, unsigned int actor_id) const {
|
||||
/* 802681A4-802681AC 262AE4 0008+00 0/0 11/11 0/0 .text SetPolyIndex__13cBgS_PolyInfoFi
|
||||
*/
|
||||
void cBgS_PolyInfo::SetPolyIndex(int poly_index) {
|
||||
JUT_ASSERT(103, 0 <= poly_index);
|
||||
mPolyIndex = poly_index;
|
||||
}
|
||||
|
||||
/* 802681AC-802681C0 262AEC 0014+00 0/0 3/3 0/0 .text ChkBgIndex__13cBgS_PolyInfoCFv */
|
||||
bool cBgS_PolyInfo::ChkBgIndex() const {
|
||||
return mBgIndex != 0x100;
|
||||
}
|
||||
if (mBgIndex == 0x100) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user