38 typedef std::vector<std::unique_ptr<BaseComponent>>
Container;
41 Container::iterator
begin();
42 Container::iterator
end();
51 static GroupId group_id = group_id_counter_++;
Container::iterator begin()
Definition: component.cpp:16
Definition: component.h:18
Has to keep track of all the different entities and their current state.
Definition: entity.h:24
unsigned int GroupId
Definition: component.h:16
virtual GroupId getGroup()=0
Container::iterator end()
Definition: component.cpp:20
ComponentGroup & add(std::unique_ptr< BaseComponent > &&component)
Definition: component.cpp:10
std::vector< std::unique_ptr< BaseComponent > > Container
Definition: component.h:38
Definition: component.h:35
static GroupId group_id_counter_
Definition: component.h:22
Definition: component.h:29
std::bitset< 64 > ComponentMask
The component mask represents all the components that the entity is currently attached to...
Definition: component.h:14