Closed Andidy closed 3 years ago
struct Entity has indices into the std::vectors in struct GameState. These should be populated inside the constructor of struct Entity.
struct Entity
std::vector
struct GameState
Here is an example of the struct Entity constructor with the components: cTransform and cGridTransform already filled out.
https://github.com/Andidy/engine-v2/blob/d3f47492e45b14edad01d5dbbcfa1d88cdd094d3/engine-v2/src/entity.h#L24-L29
struct Entity
has indices into thestd::vector
s instruct GameState
. These should be populated inside the constructor ofstruct Entity
.Here is an example of the
struct Entity
constructor with the components: cTransform and cGridTransform already filled out.https://github.com/Andidy/engine-v2/blob/d3f47492e45b14edad01d5dbbcfa1d88cdd094d3/engine-v2/src/entity.h#L24-L29