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

34 lines
535 B
C++
Raw Normal View History

2020-12-03 17:58:53 -08:00
#include "SComponent/c_bg_w.h"
void cBgW_BgId::Regist(int a1) {
mId = a1;
}
void cBgW_BgId::Release() {
mId = 0x100;
}
unsigned int cBgW_BgId::ChkUsed() const {
unsigned int temp = mId - 0x100;
return temp >> 0x1f;
}
extern "C" {
bool cBgW_CheckBGround(float a1) {
return a1 >= lbl_804550E8;
}
bool cBgW_CheckBRoof(float a1) {
return a1 < lbl_804550EC;
}
2020-12-26 11:31:49 -05:00
bool cBgW_CheckBWall(float a1) {
2020-12-03 17:58:53 -08:00
if (!cBgW_CheckBGround(a1) && !cBgW_CheckBRoof(a1))
return true;
2020-12-26 11:31:49 -05:00
2020-12-03 17:58:53 -08:00
return false;
}
} // extern "C"