Andidy / engine-v2

1 stars 0 forks source link

Moved Components into `components.h` and `components.cpp` #29

Closed Andidy closed 3 years ago

Andidy commented 3 years ago

Moved cRenderable and cGridTransform and cUnit into components.h and components.cpp to group the components into one file because I believe it is cleaner this way. During the process I deleted the cItem, cFood, and cInventory components. I did that because I am currently not sure how those components would've fit into the current game design. They were hold overs from engine (v1) which had a different design in mind. I also implemented the missing functionality of cUnit into cUnit, Entity, and GameState. It just felt natural to do this now. Also I merged cTransform into cRenderable because it is only used for rendering as far as I can foresee. closes #1, closes #2, closes #3, closes #4, closes #5, closes #6, closes #28