viridia / quill_v1

Reactive UI framework for Bevy game engine
MIT License
60 stars 7 forks source link

Proof of Concept: Dependency Injection #17

Open james-j-obrien opened 9 months ago

james-j-obrien commented 9 months ago

This PR shows the simple example working through dependency injection rather than hooks. This is done by implementing the PresenterParam trait for Res which adds tracking on top of the exisiting SystemParam implementation.

The big cavaet here is SystemMeta::new is not public in bevy which requries me to do some really cursed stuff to construct it, but that should be a simple PR to expose. This is not feature complete in any sense it just shows the trait implementations required to setup dependency injection.