souleng
Game engine providing full Python scripting support
|
C++ container for the Python logic that runs a scene. More...
#include <ScriptedScene.hpp>
Public Member Functions | |
ScriptedScene (pybind11::module_ scene) | |
void | StartUp () |
Called when a scene is first made active. | |
void | Shutdown () |
Called when a scene is made inactive. | |
void | Input () |
Called once per frame to handle any input. | |
void | Update (float dt) |
void | Render () |
Called once per frame to render objects to the screen. | |
C++ container for the Python logic that runs a scene.
ScriptedScene::ScriptedScene | ( | pybind11::module_ | scene | ) |
Initializes a scene
scene | The Python module for the script containing the scene's logic |
void ScriptedScene::Update | ( | float | dt | ) |
Called once per frame to handle timing specific logic
dt | The tick rate of the game, in seconds |