summaryrefslogtreecommitdiff
path: root/libs/SSystem
diff options
context:
space:
mode:
authornotyourav <65437533+notyourav@users.noreply.github.com>2020-12-03 17:58:53 -0800
committerGitHub <noreply@github.com>2020-12-03 20:58:53 -0500
commit294858f751d8f33cc453116a8d8adb8844ddd8a8 (patch)
tree02080c192a7e2379fd1d204888d5493c239c66a3 /libs/SSystem
parente27ed1c55d971c154cb7265d427cb91512156a55 (diff)
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>
Diffstat (limited to 'libs/SSystem')
-rw-r--r--libs/SSystem/SComponent/c_bg_w.cpp35
1 files changed, 34 insertions, 1 deletions
diff --git a/libs/SSystem/SComponent/c_bg_w.cpp b/libs/SSystem/SComponent/c_bg_w.cpp
index 4bf93c8658..ef273bb50f 100644
--- a/libs/SSystem/SComponent/c_bg_w.cpp
+++ b/libs/SSystem/SComponent/c_bg_w.cpp
@@ -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"