Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 971 Bytes

README.md

File metadata and controls

29 lines (17 loc) · 971 Bytes

Stride.DependencyInjection

Overview

Stride.DependencyInjection is a lightweight library that allows for dependency injection in ScriptComponent classes using a single attribute (Inject).

Features

  • 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.

Usage

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.

Alternative

Just found this : https://github.com/manio143/Stride.DependencyInjection/tree/master can be an alternative/a source of idea for this repository.

Contributing

Contributions are welcome! I just started it as a template/idea.

License

This project is licensed under the terms of the MIT license.