15 #ifndef DEFAULT_ENTITY_FACTORY_H_
16 #define DEFAULT_ENTITY_FACTORY_H_
25 #include "flatbuffers/flatbuffers.h"
26 #include "fplbase/utilities.h"
29 namespace component_library {
55 std::vector<const void*>* entity_defs);
68 std::vector<const void*>* component_defs);
82 std::vector<uint8_t>* request);
96 const std::vector<const void*>& component_data,
97 std::vector<uint8_t>* entity_definition);
110 std::vector<uint8_t>* entity_list);
117 #endif // DEFAULT_ENTITY_FACTORY_H_
virtual bool CreateEntityDefinition(const std::vector< const void * > &component_data, std::vector< uint8_t > *entity_definition)
Handles building a single Entity definition flatbuffer from a list of an Entity's Component definitio...
Implementations of DefaultEntityFactory can be found in default_entity_factory.inc.
Definition: default_entity_factory.h:39
virtual bool ReadEntityList(const void *entity_list, std::vector< const void * > *entity_defs)
Handles reading an Entity list and extracting the individual Entity data definitions.
An EntityFactory builds Entities based on prototypes, using FlatBuffers to specify the raw data for E...
Definition: entity_factory.h:37
virtual bool CreateEntityList(const std::vector< const void * > &entity_defs, std::vector< uint8_t > *entity_list)
Handles building an Entity list flatbuffer from a collection of individual Entity flatbuffers...
virtual bool ReadEntityDefinition(const void *entity_definition, std::vector< const void * > *component_defs)
Handles reading an Entity definition and extracting the individual Component data definitions...
virtual ~DefaultEntityFactory()
Destructor for DefaultEntityFactory.
Definition: default_entity_factory.h:42
virtual bool CreatePrototypeRequest(const char *prototype_name, std::vector< uint8_t > *request)
Creates an Entity list that contains a single Entity definition, which contains a single Component de...