Indra-db / flecs-ecs-rs

a Rust API for Flecs : a fast entity component system (ECS)
MIT License
13 stars 4 forks source link

Better interface to `defer_begin` / `defer_end`? #32

Closed waywardmonkeys closed 3 months ago

waywardmonkeys commented 3 months ago

It might be nice to be able to have a World::defer and call it with a closure / function which would wrap it in defer_begin / defer_end calls.

This might not interact as well with defer_suspend / defer_resume, but maybe that's less important.

Indra-db commented 3 months ago

this already exists for quite some time,

image

in case you wonder "does this function exist from the cpp api" you can do a search generally from [cpp class name]::[function name]