bokrosf / snake

Snake game for learning entity-component based architecture and SDL usage.
0 stars 0 forks source link

Remove entity &attached_to constructor parameter #192

Closed bokrosf closed 1 week ago

bokrosf commented 2 weeks ago

component class' attached_to constructor parameter is mandatory for this and all subclasses. It's unnecessary boilerplate because the entity::add_component could also set this field automatically.