| 395 | } |
| 396 | |
| 397 | bool Engine::LoadProject(Ref<Project> project) |
| 398 | { |
| 399 | currentProject = project; |
| 400 | |
| 401 | // TODO(antopilo) only generate manifest in editor context |
| 402 | FileSystem::SetRootDirectory(FileSystem::GetParentPath(project->FullPath)); |
| 403 | GenerateManifest(); |
| 404 | |
| 405 | if (!Engine::SetCurrentScene(currentProject->DefaultScene)) |
| 406 | { |
| 407 | return false; |
| 408 | } |
| 409 | |
| 410 | ScriptingEngineNet::Get().Initialize(); |
| 411 | ScriptingEngineNet::Get().LoadProjectAssembly(project); |
| 412 | |
| 413 | return true; |
| 414 | } |
| 415 | |
| 416 | Ref<Window> Engine::GetCurrentWindow() |
| 417 | { |
nothing calls this directly
no test coverage detected