summaryrefslogtreecommitdiff
path: root/src/KingSystem/Map/mapPlacementTree.h
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2021-06-28 10:05:07 -0700
committertheo3 <arisstephenson2@gmail.com>2021-07-01 21:02:46 -0700
commit4cba2eb093fbc452db88e33643b3ca293ff02213 (patch)
tree581b36877d8b17b986c12a20a351b229dfd56bdf /src/KingSystem/Map/mapPlacementTree.h
parent112c1f987d3831df97f46c0f9e4ae977fba59484 (diff)
ksys::map placement classes
Diffstat (limited to 'src/KingSystem/Map/mapPlacementTree.h')
-rw-r--r--src/KingSystem/Map/mapPlacementTree.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/KingSystem/Map/mapPlacementTree.h b/src/KingSystem/Map/mapPlacementTree.h
new file mode 100644
index 00000000..13818b34
--- /dev/null
+++ b/src/KingSystem/Map/mapPlacementTree.h
@@ -0,0 +1,39 @@
+#pragma once
+
+#include <container/seadBuffer.h>
+#include <container/seadObjArray.h>
+#include <limits>
+#include <thread/seadReadWriteLock.h>
+
+using F32Limits = std::numeric_limits<f32>;
+
+namespace ksys::map {
+
+// FIXME
+class PlacementTree {
+ struct TreeObject {
+ u32 _0;
+ u32 _4;
+ u32 _8;
+ f32 _c;
+ f32 _10;
+ f32 _14;
+ };
+
+public:
+ PlacementTree();
+ ~PlacementTree();
+
+ sead::Buffer<TreeObject> mBuffer{};
+ sead::Buffer<u32*> mObjects{};
+ void* _20{};
+ void* _28{};
+ u32 _30{};
+ f32 _34 = F32Limits::max();
+ f32 _38 = F32Limits::max();
+ f32 _3c = F32Limits::max();
+ f32 _40 = F32Limits::max();
+ sead::ReadWriteLock mLock{};
+};
+
+} // namespace ksys::map