Indra-db / Flecs-Rust

Rust API for Flecs: A Fast and Flexible Entity Component System (ECS)
MIT License
194 stars 11 forks source link

`ObserverBuilder`: Simplify `event_count` #168

Closed waywardmonkeys closed 4 months ago

waywardmonkeys commented 4 months ago

This is only used from Rust to track the current index into the description's events for adding events. We can make it a usize instead of an i32 and casting it as we don't need this to be the exact same as in C++.

Further, the ObserverBuilder::event_count() function is not needed and can be removed. (This is a change to the public API.)