quill icon indicating copy to clipboard operation
quill copied to clipboard

Proof of Concept: Dependency Injection

Open james-j-obrien opened this issue 1 year ago • 0 comments

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.

james-j-obrien avatar Dec 03 '23 21:12 james-j-obrien