mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
24 lines
543 B
C#
24 lines
543 B
C#
namespace DCFApixels.DragonECS
|
|
{
|
|
public interface IInjectionBlock
|
|
{
|
|
void InjectTo(Injector inj);
|
|
}
|
|
public readonly struct InjectionBranchIniter
|
|
{
|
|
private readonly Injector _injector;
|
|
public InjectionBranchIniter(Injector injector)
|
|
{
|
|
_injector = injector;
|
|
}
|
|
public void AddNode<T>()
|
|
{
|
|
_injector.AddNode<T>();
|
|
}
|
|
}
|
|
public interface IInjectionUnit
|
|
{
|
|
void OnInitInjectionBranch(InjectionBranchIniter initer);
|
|
}
|
|
}
|