Unravel Engine C++ Reference
Loading...
Searching...
No Matches
editor_actions.h
Go to the documentation of this file.
1#pragma once
2
3#include <base/basetypes.hpp>
4#include <context/context.hpp>
5
7#include <engine/ecs/prefab.h>
10
12
13namespace unravel
14{
15
17{
18 static auto new_scene(rtti::context& ctx) -> bool;
19 static auto open_scene(rtti::context& ctx) -> bool;
20 static auto open_scene_from_asset(rtti::context& ctx, const asset_handle<scene_prefab>& asset) -> bool;
21 static auto save_scene(rtti::context& ctx) -> bool;
22 static auto save_scene_as(rtti::context& ctx) -> bool;
23 static auto prompt_save_scene(rtti::context& ctx, const std::function<void()>& on_continue) -> bool;
24
25 static auto close_project(rtti::context& ctx) -> bool;
26 static auto reload_project(rtti::context& ctx) -> bool;
27
28 static void run_project(const deploy_settings& params);
29 static auto deploy_project(rtti::context& ctx, const deploy_settings& params)
30 -> std::map<std::string, tpp::shared_future<void>>;
31
32
33 static void recompile_shaders();
34 static void recompile_textures();
35 static void recompile_ui();
36 static void recompile_scripts();
37 static void recompile_all();
38 static void generate_script_workspace();
39 static void open_workspace_on_file(const fs::path& file, int line = 0);
40
41};
42
43} // namespace unravel
Represents a handle to an asset, providing access and management functions.
static auto close_project(rtti::context &ctx) -> bool
static void open_workspace_on_file(const fs::path &file, int line=0)
static auto open_scene(rtti::context &ctx) -> bool
static auto open_scene_from_asset(rtti::context &ctx, const asset_handle< scene_prefab > &asset) -> bool
static void run_project(const deploy_settings &params)
static auto prompt_save_scene(rtti::context &ctx, const std::function< void()> &on_continue) -> bool
static auto save_scene(rtti::context &ctx) -> bool
static auto new_scene(rtti::context &ctx) -> bool
static auto reload_project(rtti::context &ctx) -> bool
static auto save_scene_as(rtti::context &ctx) -> bool
static auto deploy_project(rtti::context &ctx, const deploy_settings &params) -> std::map< std::string, tpp::shared_future< void > >
static void generate_script_workspace()