14template<
typename Entity>
20template<
typename Entity>
71 std::vector<entity_data<entt::handle>>
entities;
73 entt::registry*
reg{};
94 std::function<void(hpp::span<const entt::handle> new_entities)>
callback;
110 typename T::char_type;
111 typename T::traits_type;
117 }
noexcept -> std::same_as<std::basic_string_view<typename T::char_type, typename T::traits_type>>;
121void save_to_file(
const std::string& absolute_path, entt::const_handle obj);
123void save_to_file_bin(
const std::string& absolute_path, entt::const_handle obj);
127void load_from_file(
const std::string& absolute_path, entt::handle& obj);
132 entt::registry& registry,
133 entt::handle& obj) -> bool;
157template<
typename Stream,
typename T>
auto push_save_context() -> bool
void save_to_stream_bin(std::ostream &stream, entt::const_handle obj)
void load_from(Stream &stream, T &scn)
void clone_scene_from_stream(const scene &src_scene, scene &dst_scene)
void pop_load_context(bool push_result)
void save_to_file_bin(const std::string &absolute_path, const animation_clip &obj)
auto get_post_load_callbacks() -> const post_load_callbacks *
auto push_load_context(entt::registry ®istry) -> bool
void pop_on_load_callbacks()
auto get_save_context() -> save_context &
void load_from_file(const std::string &absolute_path, animation_clip &obj)
auto get_load_context() -> load_context &
void save_to_file(const std::string &absolute_path, const animation_clip &obj)
auto load_from_prefab_bin(const asset_handle< prefab > &pfb, entt::registry ®istry) -> entt::handle
auto load_from_stream(std::istream &stream, entt::handle e, script_component::script_object &obj) -> bool
void load_from_stream_bin(std::istream &stream, entt::handle &obj)
auto load_from_prefab_out(const asset_handle< prefab > &pfb, entt::registry ®istry, entt::handle &obj) -> bool
void load_from_file_bin(const std::string &absolute_path, animation_clip &obj)
void pop_save_context(bool push_result)
@ cloning_prefab_instance
void load_from_view(std::string_view view, entt::handle &obj)
void push_on_load_callbacks(const post_load_callbacks &callbacks)
auto load_from_prefab(const asset_handle< prefab > &pfb, entt::registry ®istry) -> entt::handle
void clone_entity_from_stream(entt::const_handle src_obj, entt::handle &dst_obj)
auto save_to_stream(std::ostream &stream, entt::const_handle e, const script_component::script_object &obj) -> bool
Thread-safe handle to an asset.
entity_components< Entity > components
auto is_cloning() const -> bool
auto get_clone_mode() const -> clone_mode_t
std::map< entt::entity, entt::handle > mapping_by_eid
std::vector< entity_data< entt::handle > > entities
auto is_updating_prefab() const -> bool
std::map< hpp::uuid, prefab_uid_mapping_t > mapping_by_prefab_uid
std::map< hpp::uuid, entt::handle > mapping_by_uid
std::function< void(hpp::span< const entt::handle > new_entities)> callback
entt::const_handle save_source
auto get_clone_mode() const -> clone_mode_t
auto is_cloning() const -> bool
auto is_saving_to_prefab() const -> bool
Represents a scene in the ACE framework, managing entities and their relationships.