mirror of
https://github.com/DCFApixels/DragonECS-AutoInjections.git
synced 2025-09-18 05:04:35 +08:00
add InitAfterDI to EcsSubjectDI
This commit is contained in:
parent
0a66736274
commit
d9c6f7d50f
@ -5,10 +5,15 @@ namespace DCFApixels.DragonECS
|
|||||||
{
|
{
|
||||||
public abstract class EcsSubjectDI : EcsSubject
|
public abstract class EcsSubjectDI : EcsSubject
|
||||||
{
|
{
|
||||||
protected sealed override void Init(Builder b) => EcsQueryDIHelper.Fill(this, b);
|
protected sealed override void Init(Builder b)
|
||||||
|
{
|
||||||
|
EcsSubjectDIHelper.Fill(this, b);
|
||||||
|
InitAfterDI(b);
|
||||||
|
}
|
||||||
|
protected virtual void InitAfterDI(Builder b) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static class EcsQueryDIHelper
|
internal static class EcsSubjectDIHelper
|
||||||
{
|
{
|
||||||
public static void Fill(EcsSubject s, EcsSubject.Builder b)
|
public static void Fill(EcsSubject s, EcsSubject.Builder b)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user