Added ShowMouse and get global position to .net api, deferred onInit after all entities have been initialized

This commit is contained in:
Antoine Pilote
2024-03-16 16:37:38 -04:00
parent a5ca094c5f
commit 69205ec4fa
6 changed files with 61 additions and 7 deletions

View File

@@ -223,7 +223,7 @@ namespace Nuake
if (!HasEntityScriptInstance(entity))
{
Logger::Log("Failed to get entity .Net script instance, doesn't exist", ".net", CRITICAL);
throw std::exception("Failed to get entity .Net script instance, doesn't exist");
return Coral::ManagedObject();
}
return m_EntityToManagedObjects[entity.GetID()];