Add Engine::getActiveScene/Camera
This commit is contained in:
parent
21f3638c7d
commit
c7572cf782
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user