|
NoJobEngine 2.0.7
|
#include <ProjectPanel.h>
Public Types | |
| using | LogFunction = std::function<void(std::string)> |
| using | CreateModelFunction = std::function<void(const std::filesystem::path&)> |
Public Member Functions | |
| void | Initialize () |
| void | Draw (Scene *scene, Entity &selectedEntity, const std::shared_ptr< Mesh > &defaultCubeMesh, const std::shared_ptr< Material > &defaultCubeMaterial, const CreateModelFunction &createModel, const LogFunction &log) |
| const std::filesystem::path & | GetCurrentDirectoryPath () const |
Definition at line 20 of file ProjectPanel.h.
| using NoJob::ProjectPanel::CreateModelFunction = std::function<void(const std::filesystem::path&)> |
Definition at line 24 of file ProjectPanel.h.
| using NoJob::ProjectPanel::LogFunction = std::function<void(std::string)> |
Definition at line 23 of file ProjectPanel.h.
| void NoJob::ProjectPanel::Draw | ( | Scene * | scene, |
| Entity & | selectedEntity, | ||
| const std::shared_ptr< Mesh > & | defaultCubeMesh, | ||
| const std::shared_ptr< Material > & | defaultCubeMaterial, | ||
| const CreateModelFunction & | createModel, | ||
| const LogFunction & | log ) |
Definition at line 25 of file ProjectPanel.cpp.
References NoJob::ProjectAssetOperations::CreateCppScript(), NoJob::ProjectAssetOperations::CreatePrefab(), NoJob::Entity::Entity(), NoJob::AssetManager::GetAssetsDirectory(), NoJob::Entity::GetComponent(), NoJob::AssetManager::GetProjectRoot(), NoJob::Entity::HasComponent(), NoJob::PrefabSerializer::Instantiate(), NoJob::Scene::IsValid(), NoJob::AssetRegistry::Load(), NoJob::MaterialSerializer::Load(), NoJob::VisualStudioIntegration::OpenScript(), NoJob::ProjectAssetOperations::SanitizeCppIdentifier(), and NoJob::AssetManager::ToProjectRelative().
|
inline |
Definition at line 34 of file ProjectPanel.h.
| void NoJob::ProjectPanel::Initialize | ( | ) |
Definition at line 20 of file ProjectPanel.cpp.
References NoJob::AssetManager::GetProjectRoot().