jsgoller1 / sprawl

2D Game Engine
GNU General Public License v3.0
0 stars 0 forks source link

Refactor: Remove component setters from GameObjects, and simplify GameObject loading in IntegrationWADLoader #54

Closed jsgoller1 closed 1 year ago

jsgoller1 commented 1 year ago

Now that we can have components that don't need identities, we can just create them and pass them to the constructor of GameObject. We don't need setters; it's unlikely we'll need to reconstruct components after a GameObject is created, and if we need to we can probably just reconstruct the GameObject. (This probably should've been part of #53)