Add Engine::getActiveScene/Camera

This commit is contained in:
MrLetsplay 2023-09-13 21:09:29 +02:00
parent 21f3638c7d
commit c7572cf782
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
2 changed files with 11 additions and 0 deletions

View File

@ -309,8 +309,16 @@ void setActiveScene(Scene *scene) {
kekData.activeScene = scene; kekData.activeScene = scene;
} }
Scene *getActiveScene() {
return kekData.activeScene;
}
Player *getPlayer() { Player *getPlayer() {
return kekData.player; return kekData.player;
} }
Camera *getActiveCamera() {
return kekData.activeCamera;
}
} }

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include "camera.h"
#include "player.h" #include "player.h"
#include "scene.h" #include "scene.h"
@ -10,6 +11,8 @@ int start();
void exit(); void exit();
void setActiveScene(Scene *scene); void setActiveScene(Scene *scene);
Scene *getActiveScene();
Player *getPlayer(); Player *getPlayer();
Camera *getActiveCamera();
} }