Added SceneSwitching, Better font rendering, DOM inspector, Font-family prop

This commit is contained in:
antopilo
2024-09-13 17:18:09 -04:00
parent 4c76e9e493
commit 89ea32a4b3
22 changed files with 241 additions and 248 deletions

View File

@@ -101,8 +101,20 @@ namespace Nuake {
return ConvertHitsToArray(hits);
}
void LoadScene(Coral::String path)
{
if (!FileSystem::FileExists(path))
{
Logger::Log("Failed to load scene with path: " + std::string(path), ".net/scene", CRITICAL);
return;
}
Engine::QueueSceneSwitch(std::string(path));
}
void EngineNetAPI::RegisterMethods()
{
RegisterMethod("Engine.LoadSceneIcall", &LoadScene);
RegisterMethod("Engine.LoggerLogIcall", (void*)(&Log));
// Debug renderer