#include <ComponentRegistry.h>
Definition at line 17 of file ComponentRegistry.h.
◆ DeserializeFn
◆ HasComponentFn
◆ SerializeFn
◆ ComponentRegistry() [1/2]
◆ ComponentRegistry() [2/2]
| hellfire::ComponentRegistry::ComponentRegistry |
( |
| ) |
|
|
privatedefault |
◆ deserialize_all_components()
| void hellfire::ComponentRegistry::deserialize_all_components |
( |
Entity & |
entity, |
|
|
const nlohmann::json & |
components |
|
) |
| const |
|
inline |
◆ deserialize_component()
| bool hellfire::ComponentRegistry::deserialize_component |
( |
Entity & |
entity, |
|
|
const nlohmann::json & |
comp_json |
|
) |
| const |
|
inline |
◆ instance()
◆ operator=()
◆ register_component()
template<ComponentType T>
| void hellfire::ComponentRegistry::register_component |
( |
const std::string & |
type_name | ) |
|
|
inline |
◆ serialize_all_components()
| nlohmann::json hellfire::ComponentRegistry::serialize_all_components |
( |
const Entity & |
entity | ) |
const |
|
inline |
◆ deserializers_
| std::unordered_map<std::string, DeserializeFn> hellfire::ComponentRegistry::deserializers_ |
|
private |
◆ has_component_
| std::unordered_map<std::type_index, HasComponentFn> hellfire::ComponentRegistry::has_component_ |
|
private |
◆ name_to_type_
| std::unordered_map<std::string, std::type_index> hellfire::ComponentRegistry::name_to_type_ |
|
private |
◆ serializers_
| std::unordered_map<std::type_index, SerializeFn> hellfire::ComponentRegistry::serializers_ |
|
private |
◆ type_names_
| std::unordered_map<std::type_index, std::string> hellfire::ComponentRegistry::type_names_ |
|
private |
The documentation for this class was generated from the following file: