Scene switching API

This commit is contained in:
John McCardle 2024-03-06 10:50:19 -05:00
commit 30cfa5ca71
7 changed files with 96 additions and 10 deletions

31
src/PyScene.cpp Normal file
View 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();
}