mirror of
https://github.com/zeldaret/tp
synced 2026-07-09 14:55:32 -04:00
JSystem Font classes, SComponent cBgW (#14)
* c_bg_w.cpp OK * JUTFont and JUTResFont partially implemented Co-authored-by: notyouraveragehooman <65437533+notyouraveragehooman@users.noreply.github.com> Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
@@ -1 +1,34 @@
|
||||
// ok
|
||||
#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;
|
||||
}
|
||||
|
||||
bool cBgW_CheckBWall(float a1)
|
||||
{
|
||||
if (!cBgW_CheckBGround(a1) && !cBgW_CheckBRoof(a1))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user