15 #ifndef CORGI_COMPONENT_LIBRARY_META_H_
16 #define CORGI_COMPONENT_LIBRARY_META_H_
20 #include <unordered_map>
22 #include "library_components_generated.h"
25 namespace component_library {
88 const corgi::MetaDef* meta_def);
96 const std::string& source_file);
146 void AddEntityToDictionary(
const std::string& key,
148 void RemoveEntityFromDictionary(
const std::string& key);
149 void GenerateRandomEntityID(std::string* output);
151 std::unordered_map<std::string, corgi::EntityRef> entity_dictionary_;
152 std::string empty_string;
162 #endif // CORGI_COMPONENT_LIBRARY_META_H_
std::unique_ptr< uint8_t, std::function< void(uint8_t *)> > RawDataUniquePtr
A pointer type for exported raw data.
Definition: component_interface.h:63
A Component is an object that encapsulates all data and logic for Entities of a particular type...
Definition: component.h:43
int WorldTime
A typedef that represents time in the game.
Definition: entity_common.h:49
A reference object for pointing into the vector pool. It acts as a pointer for vector pool elements a...
Definition: vector_pool.h:72
#define CORGI_REGISTER_COMPONENT(ComponentType, DataType)
Definition: component_id_lookup.h:48