Initial infrastructure for C# scene callbacks in subsystems

This commit is contained in:
WiggleWizard
2024-09-19 17:52:01 +01:00
parent 98797e15f8
commit d0c5ef1a1d
14 changed files with 190 additions and 4 deletions

View File

@@ -303,9 +303,12 @@ Ref<Scene> Window::GetScene()
return this->scene;
}
bool Window::SetScene(Ref<Scene> scene)
bool Window::SetScene(Ref<Scene> newScene)
{
this->scene = scene;
scene = newScene;
windowSetSceneDelegate.Broadcast(newScene);
return true;
}