Offer runnable C++ and Lua project starters
This commit is contained in:
@@ -8,6 +8,7 @@ struct ProjectSelection {
|
||||
std::string name;
|
||||
int dimension = 3;
|
||||
bool create = false;
|
||||
std::string language = "cpp";
|
||||
};
|
||||
// Records only existing, valid projects. Call after successful Session setup.
|
||||
void remember_project(const std::filesystem::path& project);
|
||||
@@ -15,7 +16,9 @@ class ProjectLauncher {
|
||||
public:
|
||||
ProjectLauncher(render::Renderer&, const std::filesystem::path& engine_root,
|
||||
const std::filesystem::path& initial_project = {},
|
||||
const std::filesystem::path& recent_store = {});
|
||||
const std::filesystem::path& recent_store = {},
|
||||
const std::optional<ProjectSelection>& retry = {},
|
||||
std::string creation_error = {});
|
||||
~ProjectLauncher();
|
||||
void frame(const std::vector<render::Event>&);
|
||||
const render::Snapshot& snapshot() const;
|
||||
@@ -30,5 +33,7 @@ class ProjectLauncher {
|
||||
std::optional<ProjectSelection>
|
||||
run_project_launcher(const std::filesystem::path& engine_root,
|
||||
const std::filesystem::path& initial_project = {},
|
||||
std::uint64_t max_frames = 0, const std::filesystem::path& capture = {});
|
||||
std::uint64_t max_frames = 0, const std::filesystem::path& capture = {},
|
||||
const std::optional<ProjectSelection>& retry = {},
|
||||
std::string creation_error = {});
|
||||
} // namespace faset::editor
|
||||
|
||||
Reference in New Issue
Block a user