Scene switching API
This commit is contained in:
parent
6de3f0e8cf
commit
30cfa5ca71
7 changed files with 96 additions and 10 deletions
31
src/PyScene.cpp
Normal file
31
src/PyScene.cpp
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#include "PyScene.h"
|
||||
#include "ActionCode.h"
|
||||
#include "Resources.h"
|
||||
|
||||
PyScene::PyScene(GameEngine* g) : Scene(g)
|
||||
{
|
||||
}
|
||||
|
||||
void PyScene::update()
|
||||
{
|
||||
}
|
||||
|
||||
void PyScene::doAction(std::string name, std::string type)
|
||||
{
|
||||
}
|
||||
|
||||
void PyScene::sRender()
|
||||
{
|
||||
game->getWindow().clear();
|
||||
|
||||
auto vec = *ui_elements;
|
||||
for (auto e: vec)
|
||||
{
|
||||
if (e)
|
||||
e->render();
|
||||
}
|
||||
|
||||
game->getWindow().display();
|
||||
|
||||
McRFPy_API::REPL();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue