jul1278 / SimpleComponents

component-based 2D game engine in SDL
0 stars 1 forks source link

Use EntityIds #64

Closed jul1278 closed 8 years ago

jul1278 commented 8 years ago

At the moment we can't delete 'related' components, If I delete a TransformComponent there's no way of deleting the corresponding GraphicsComponent. We need to be using the entity id.

jul1278 commented 8 years ago

Consider a method for associating a collection name with ids so you can call NewComponent(id) without specifying the collection name.

NewEntityId("CollectionName"); etc

jul1278 commented 8 years ago

both tasks now complete