Stride.DependencyInjection is a lightweight library that allows for dependency injection in ScriptComponent classes using a single attribute (Inject).
- Simplicity: Inject dependencies into your EntityComponent classes with just one attribute.
- Lightweight: The source code is short and straightforward, making it easy to maintain and extend.
To use Stride.DependencyInjection, First register your types, then simply add the provided attribute to each property that you want to inject. NOTE : property must have Get & set and being public. The library will handle the rest.
Just found this : https://github.com/manio143/Stride.DependencyInjection/tree/master can be an alternative/a source of idea for this repository.
Contributions are welcome! I just started it as a template/idea.
This project is licensed under the terms of the MIT license.