diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-03-21 20:54:14 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-03-21 21:40:21 -0400 |
| commit | 677a3cbec2f7908ee0897b97d508a6bd66a0a344 (patch) | |
| tree | fc88b21dd61dbb10dd8b5c8aef73702d15514f00 /src/scene-types.hpp | |
| parent | cae76dd98e301a4560bb46ecb59b5952dff04149 (diff) | |
pke: first-pass level is a collection of scenes
Diffstat (limited to 'src/scene-types.hpp')
| -rw-r--r-- | src/scene-types.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/scene-types.hpp b/src/scene-types.hpp new file mode 100644 index 0000000..655c621 --- /dev/null +++ b/src/scene-types.hpp @@ -0,0 +1,18 @@ +#ifndef PKE_SCENE_TYPES_HPP +#define PKE_SCENE_TYPES_HPP + +#include "pk.h" +#include "components.hpp" +#include "camera.hpp" + +const uint8_t SCENE_NAME_MAX_LEN = 16; +#define pke_scene_name_printf_format "%16s" + +struct pke_scene : public Entity_Base { + pk_str file_path = {}; + char name[SCENE_NAME_MAX_LEN] = {'\0'}; + SceneHandle scene_handle = SceneHandle_MAX; + pk_arr_t<CameraHandle> cameras; +}; + +#endif /* PKE_SCENE_TYPES_HPP */ |
