apeltsi / loitsu

Cross-platform Game Engine written in Rust
MIT License
1 stars 0 forks source link

ECS tick system #9

Closed apeltsi closed 6 months ago

apeltsi commented 10 months ago

Currently the ECS can only call a method on all entities & components at the same time. It would be favorable if the ECS only called these methods on components that actually have an implementation for that method.

The ECS also lacks a tick method :(

Component methods currently don't have a reference to the entity they're executing on.

Important: Saving a reference could lead to a reference cycle, which rune doesn't handle. So we'll just have to pass in an entity struct along with every component method call.

apeltsi commented 6 months ago

revisit later