Add Engine::getActiveScene/Camera
This commit is contained in:
parent
21f3638c7d
commit
c7572cf782
@ -309,8 +309,16 @@ void setActiveScene(Scene *scene) {
|
||||
kekData.activeScene = scene;
|
||||
}
|
||||
|
||||
Scene *getActiveScene() {
|
||||
return kekData.activeScene;
|
||||
}
|
||||
|
||||
Player *getPlayer() {
|
||||
return kekData.player;
|
||||
}
|
||||
|
||||
Camera *getActiveCamera() {
|
||||
return kekData.activeCamera;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "camera.h"
|
||||
#include "player.h"
|
||||
#include "scene.h"
|
||||
|
||||
@ -10,6 +11,8 @@ int start();
|
||||
void exit();
|
||||
|
||||
void setActiveScene(Scene *scene);
|
||||
Scene *getActiveScene();
|
||||
Player *getPlayer();
|
||||
Camera *getActiveCamera();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user