viotecs 1.0
|
Component class. More...
#include <component.hpp>
Public Member Functions | |
bool | operator== (const component &other) const |
Data Fields | |
entity_t | entity |
Component class.
This class is used to create components. Components are used to store data that is associated with an entity. For example, a Position component could store the position of the entity.
Example creating a component:
You need to provide a default constructor, any other constructor is optional.
Definition at line 57 of file component.hpp.
|
inline |
Definition at line 61 of file component.hpp.
entity_t viotecs::component::entity |
Definition at line 59 of file component.hpp.