Edit of asset "Simple Dependency Injection" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | Simple Dependency Injection | Simple Dependency Injection |
Description |
Easily add Dependency Injection to your project. With the plugin enabled, simply create a [DependencyProvider] node in your Main scene and assign your dependencies, then in any sub scene, so long as it is in the scene tree and has any node that has a script with an '_inject' function, add a [DependencyInjectionRequester] node. This tool is useful in cases where: 1. You do not have direct access (via @export) to the nodes you need in a script and do not wish to create a global autoload. 2. The nodes you need have their own in-scene dependencies. 3. You wish to rely on abstractions to interact with other parts of your code. |
Easily add Dependency Injection to your project. With the plugin enabled, simply create a [DependencyProvider] node in your Main scene and assign your dependencies, then in any sub scene, so long as it is in the scene tree and has any node that has a script with an '_inject' function, add a [DependencyInjectionRequester] node. This tool is useful in cases where: 1. You do not have direct access (via @export) to the nodes you need in a script and do not wish to create a global autoload. 2. The nodes you need have their own in-scene dependencies. 3. You wish to rely on abstractions to interact with other parts of your code. |
Category | Tools | Tools |
License | MIT | MIT |
Repository Provider | GitHub | GitHub |
Repository Url | https://github.com/why-not-games-studio/dependency-injection-system | https://github.com/why-not-games-studio/dependency-injection-system |
Issues Url | https://github.com/why-not-games-studio/dependency-injection-system/issues | https://github.com/why-not-games-studio/dependency-injection-system/issues |
Godot version | Godot 4.3 | Godot 4.3 |
Version String | 1.0.0 | 1.0.0 |
Download Commit | ac83222a3ba6513285baa1eb814f69899c56bb4e | ac83222a3ba6513285baa1eb814f69899c56bb4e |
Download Url (Computed) | https://github.com/why-not-games-studio/dependency-injection-system/archive/ac83222a3ba6513285baa1eb814f69899c56bb4e.zip | https://github.com/why-not-games-studio/dependency-injection-system/archive/ac83222a3ba6513285baa1eb814f69899c56bb4e.zip |
Icon Url |
https://raw.githubusercontent.com/why-not-games-studio/dependency-injection-system/origin/master/simple_dependency_injection_logo.png
![]() |
https://raw.githubusercontent.com/why-not-games-studio/dependency-injection-system/origin/master/simple_dependency_injection_logo.png
![]() |