JaimeGensler / thyseus

An archetypal Entity Component System, built entirely in Typescript
MIT License
74 stars 3 forks source link

[FEAT] Explore removing `Commands`, `Entities` #88

Closed JaimeGensler closed 6 months ago

JaimeGensler commented 7 months ago

Describe the problem this feature solves

Adding an issue for tracking Commands and Entities add some indirection to dealing with entities that serves little purpose anymore. Would be nice to shake a little more bloat from the bundle and get rid of common indirection when handling entities. Would also be a good opportunity to explore a default "entity update timing" so applyCommands or some equivalent doesn't have to be added to be productive

Describe the solution you'd like to see

Suggest moving entity spawning responsibilities to World and entity manipulation to Entity, as entity instances are already needed for manipulation anyway. Deferred entity updates is still good and necessary (to avoid intermediate table creation/moving) but an alternate storing mechanism would be good.