How to Use Dependency Injection with ECS
A new post on my blog.
I’ve seen this question come up quite often in ECS discussions, so I decided to share how I typically integrate Dependency Injection containers with ECS — complete with the simplest working example on GitHub. To me, such a setup always feels more convenient and more efficient. But it doesn't mean it is the only or the right way to work with it. If you prefer the Entities approach, or a manual setup of dependencies via the inspector in Morpeh, then that is also okay.
https://gamedev.center/how-to-use-dependency-injection-with-ecs-for-scalable-game-development/
Repo: https://github.com/AlexMerzlikin/ECS-DI-Sample
#ecs #di
Post #2497
1.64K