20 :
entity(ent), component_type(ctype)
57 :
entity(ent), component_type(ctype)
100 :
entity(ent), old_active(old_active), new_active(new_active)
152 :
entity(ent), old_name(old_name), new_name(new_name)
204 :
entity(ent), old_tag(old_tag), new_tag(new_tag)
256 :
entity(ent), old_materials(old_materials)
259 name =
"Set Materials";
267 auto model_copy = model_comp.
get_model();
270 for(
size_t i = 0; i <
new_materials.size() && i < model_copy.get_materials().size(); ++i)
276 model_comp.set_model(model_copy);
288 auto model_copy = model_comp.
get_model();
291 for(
size_t i = 0; i <
old_materials.size() && i < model_copy.get_materials().size(); ++i)
297 model_comp.set_model(model_copy);
326 draw_in_inspector_impl(ctx, old_materials_any, new_material_any, {});
333 :
entity(ent), old_area(old_area), new_area(new_area)
335 name =
"Set Text Bounds";
385 entt::meta_any old_area_any =
old_area;
386 entt::meta_any new_area_any =
new_area;
387 draw_in_inspector_impl(ctx, old_area_any, new_area_any, {});
392 :
entity(ent), script_type_name(type_name)
405 mono::mono_type script_type{};
406 for (
const auto&
type : script_sys.get_all_scriptable_components())
415 if (script_type.valid())
438 mono::mono_type script_type{};
439 for (
const auto&
type : script_sys.get_all_scriptable_components())
448 if (script_type.valid())
453 script_comp->remove_script_component(script_type);
454 script_comp->process_pending_deletions();
476 :
entity(ent), script_type_name(type_name)
489 mono::mono_type script_type{};
490 for (
const auto&
type : script_sys.get_all_scriptable_components())
499 if (script_type.valid())
505 auto script_obj = script_comp->get_script_component(script_type);
506 if (script_obj.scoped)
517 script_comp->process_pending_deletions();
532 mono::mono_type script_type{};
533 for (
const auto&
type : script_sys.get_all_scriptable_components())
542 if (script_type.valid())
559 script_comp.add_script_component(restored_obj);
565 script_comp.add_script_component(script_type);
571 script_comp.add_script_component(script_type);
Class that contains core data for meshes.
auto get_model() const -> const model &
Gets the model.
Class that contains core data for audio listeners. There can only be one instance of it per scene.
auto add_script_component(const mono::mono_type &type) -> script_object
auto get_pretty_name(const meta_type &t) -> std::string
auto load_from_stream(std::istream &stream, entt::handle e, script_component::script_object &obj) -> bool
auto save_to_stream(std::ostream &stream, entt::const_handle e, const script_component::script_object &obj) -> bool
Represents a handle to an asset, providing access and management functions.
static auto context() -> rtti::context &
void draw_in_inspector(rtti::context &ctx) override
void do_action() override
entt::meta_type component_type
void undo_action() override
auto is_valid() const -> bool override
entity_add_component_action_t(entt::handle ent, const entt::meta_type &ctype)
auto is_mergeable(const editing_action_t &previous) const -> bool override
void draw_in_inspector(rtti::context &ctx) override
void undo_action() override
auto is_mergeable(const editing_action_t &previous) const -> bool override
std::string script_type_name
auto is_valid() const -> bool override
entity_add_script_component_action_t(entt::handle ent, const std::string &type_name)
void do_action() override
auto is_mergeable(const editing_action_t &previous) const -> bool override
void do_action() override
void undo_action() override
auto is_valid() const -> bool override
entity_remove_component_action_t(entt::handle ent, const entt::meta_type &ctype)
entt::meta_type component_type
void draw_in_inspector(rtti::context &ctx) override
auto is_mergeable(const editing_action_t &previous) const -> bool override
void undo_action() override
std::stringstream removed_script_object_data
void do_action() override
entity_remove_script_component_action_t(entt::handle ent, const std::string &type_name)
void draw_in_inspector(rtti::context &ctx) override
auto is_valid() const -> bool override
std::string script_type_name
void draw_in_inspector(rtti::context &ctx) override
entity_set_active_action_t(entt::handle ent, bool old_active, bool new_active)
void merge_with(const editing_action_t &previous) override
void undo_action() override
auto is_valid() const -> bool override
auto is_mergeable(const editing_action_t &previous) const -> bool override
void do_action() override
std::vector< asset_handle< material > > new_materials
auto is_valid() const -> bool override
std::vector< asset_handle< material > > old_materials
void do_action() override
void undo_action() override
entity_set_materials_action_t(entt::handle ent, const std::vector< asset_handle< material > > &old_materials, const asset_handle< material > &new_material)
void merge_with(const editing_action_t &previous) override
void draw_in_inspector(rtti::context &ctx) override
auto is_mergeable(const editing_action_t &previous) const -> bool override
entity_set_name_action_t(entt::handle ent, const std::string &old_name, const std::string &new_name)
auto is_mergeable(const editing_action_t &previous) const -> bool override
void draw_in_inspector(rtti::context &ctx) override
auto is_valid() const -> bool override
void undo_action() override
void do_action() override
void merge_with(const editing_action_t &previous) override
auto is_mergeable(const editing_action_t &previous) const -> bool override
void merge_with(const editing_action_t &previous) override
void do_action() override
entity_set_tag_action_t(entt::handle ent, const std::string &old_tag, const std::string &new_tag)
auto is_valid() const -> bool override
void draw_in_inspector(rtti::context &ctx) override
void undo_action() override
auto is_mergeable(const editing_action_t &previous) const -> bool override
void undo_action() override
auto is_valid() const -> bool override
entity_set_text_bounds_action_t(entt::handle ent, const fsize_t &old_area, const fsize_t &new_area)
void do_action() override
void merge_with(const editing_action_t &previous) override
void draw_in_inspector(rtti::context &ctx) override
static void mark_property_as_changed(entt::handle entity, const entt::meta_type &component_type, const std::string &property_path)
Marks a specific property as changed using component type.
static void mark_material_as_changed(entt::handle entity)
Marks material as changed in prefab override system.
static void mark_text_area_as_changed(entt::handle entity)
Marks text area as changed in prefab override system.
static void mark_active_as_changed(entt::handle entity)
Marks entity active state as changed in prefab override system.
Component that provides a tag (name or label) for an entity.