The base class for all components in the ECS. More...
#include <ECS.h>


Public Member Functions | |
| virtual void | init () |
| Called once when the component is added to an entity. | |
| virtual void | update () |
| Called once per frame. Contains the component's main logic. | |
| virtual void | reload () |
| Called to reset the component's state. | |
| virtual void | draw () |
| Called once per frame after update. Used for rendering. | |
Public Attributes | |
| Entity * | entity |
| Pointer to the entity that owns this component. | |
The base class for all components in the ECS.
Components contain data and logic that can be attached to entities.
Called once when the component is added to an entity.
Reimplemented in Animator, Button, Collider, Controller, MouseTracker, Sprites, Tile, and Transform.
Called to reset the component's state.
Reimplemented in Button, Controller, FPS, Points, MouseTracker, and Transform.
Called once per frame. Contains the component's main logic.
Reimplemented in Animator, Button, Collider, Controller, FPS, Points, MouseTracker, Sprites, Text, and Transform.