|
viotecs 1.1.0
|
#include <component.hpp>
Public Member Functions | |
| bool | operator== (const Component &other) const |
Data Fields | |
| EntityId | 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 36 of file component.hpp.
Definition at line 41 of file component.hpp.
| EntityId viotecs::Component::entity |
Definition at line 39 of file component.hpp.