Files
dusklight/src/SSystem/SComponent/c_bg_w.cpp
T
TakaRikka dfa8efa97b project cleanup (#2895)
* some wii OS fixes

* remove old dol2asm comments

* remove dol2asm.h

* remove function address comments

* normalize ATTRIBUTE_ALIGN usage

* DECL_WEAK macro

* fix gcc attribute weak macro

* wrap more mwcc specific things in ifdefs

* fixes

* fix revo sdk version flags

* fixes
2025-11-30 15:23:42 -07:00

46 lines
648 B
C++

/**
* c_bg_w.cpp
*
*/
#include "SSystem/SComponent/c_bg_w.h"
void cBgW_BgId::Regist(int id) {
m_id = id;
}
void cBgW_BgId::Release() {
m_id = 0x100;
}
bool cBgW_BgId::ChkUsed() const {
if (m_id < 0x100) {
return true;
}
return false;
}
bool cBgW_CheckBGround(float y) {
if (y >= 0.5f) {
return true;
} else {
return false;
}
}
bool cBgW_CheckBRoof(float y) {
if (y < (-4.0f / 5.0f)) {
return true;
} else {
return false;
}
}
bool cBgW_CheckBWall(float y) {
if (!cBgW_CheckBGround(y) && !cBgW_CheckBRoof(y))
return true;
return false;
}