summaryrefslogtreecommitdiff
path: root/src/level-types.hpp
blob: 64eef326afa8de75ba4e93251d4ec77259b92dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 */