summaryrefslogtreecommitdiff
path: root/src/level-types.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-12-13 15:53:52 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-12-23 11:41:03 -0500
commit064e9ba16e390b13566d0007ef367dcb1adacc8d (patch)
tree359be3c8de88da8544646bfc9a84a8c8b3f383cd /src/level-types.hpp
parenta527dd1b773f14df140d3ac6a167339d7dc39e33 (diff)
checkpoint - add PkeLevel - editor removes on scene load
Diffstat (limited to 'src/level-types.hpp')
-rw-r--r--src/level-types.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/level-types.hpp b/src/level-types.hpp
new file mode 100644
index 0000000..64eef32
--- /dev/null
+++ b/src/level-types.hpp
@@ -0,0 +1,23 @@
+#ifndef PKE_LEVEL_TYPES_HPP
+#define PKE_LEVEL_TYPES_HPP
+
+#include "array.hpp"
+#include "macros.hpp"
+#include "memory-type-defs.hpp"
+#include "camera.hpp"
+#include "components.hpp"
+
+TypeSafeInt_Const_Expr(LevelHandle, uint16_t, 0xFFFF);
+
+struct LvlEntHandleArr : public PkeArray<EntityHandle> { };
+struct LvlCamArr : public PkeArray<CameraHandle> { };
+
+struct PkeLevel {
+ MemBucket *bkt = nullptr;
+ char name[16] = {};
+ LevelHandle handle = LevelHandle_MAX;
+ LvlEntHandleArr wrappingEntities;
+ LvlCamArr cameras;
+};
+
+#endif /* PKE_LEVEL_TYPES_HPP */