This commit is contained in:
2025-10-02 18:53:47 -05:00
parent 4b04fc65ad
commit c0cd4ead04
34 changed files with 684 additions and 35 deletions

View File

@@ -8,8 +8,12 @@
#pragma once
#include "scene.h"
#define SCENE_MANAGER_SCENE_COUNT_MAX 32
typedef struct {
scene_t *current;
scene_t *scenes[SCENE_MANAGER_SCENE_COUNT_MAX];
uint8_t sceneCount;
} scenemanager_t;
extern scenemanager_t SCENE_MANAGER;
@@ -19,6 +23,21 @@ extern scenemanager_t SCENE_MANAGER;
*/
errorret_t sceneManagerInit(void);
/**
* Retrieves a registered scene by its name.
*
* @param name The name of the scene to retrieve.
* @return The scene with the specified name, or NULL if not found.
*/
scene_t * sceneManagerGetSceneByName(const char_t *name);
/**
* Registers a scene with the scene manager.
*
* @param scene The scene to register.
*/
void sceneManagerRegisterScene(scene_t *scene);
/**
* Sets the current active scene.
*