mirror of
https://github.com/barkeser2002/flower.git
synced 2026-09-25 17:56:17 +03:00
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <util/util.h>
|
|
#include <rhi/rhi.h>
|
|
|
|
namespace engine
|
|
{
|
|
// Project interface class for engine framework.
|
|
class Project
|
|
{
|
|
public:
|
|
void init(const std::filesystem::path& projectFilePath);
|
|
|
|
// Project file absolute path.
|
|
const std::filesystem::path& getProjectFilePath() const { return m_projectFilePath; }
|
|
|
|
// Project root absolute path.
|
|
const std::filesystem::path& getProjectRootPath() const { return m_projectRootPath; }
|
|
|
|
// Project name, no included period.
|
|
const std::filesystem::path& getProjectName() const { return m_projectName; }
|
|
|
|
protected:
|
|
// Project stem name, not include period.
|
|
std::filesystem::path m_projectName;
|
|
|
|
// Project file absolute path file in this computer, this is runtime generate value.
|
|
std::filesystem::path m_projectFilePath;
|
|
|
|
// Project root path where project file exist, this is runtime generate value.
|
|
std::filesystem::path m_projectRootPath;
|
|
|
|
|
|
};
|
|
}
|