fix?
This commit is contained in:
8
Runtime/Engine/Code/Foundation/IFactory.cs
Normal file → Executable file
8
Runtime/Engine/Code/Foundation/IFactory.cs
Normal file → Executable file
@@ -1,11 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace RebootKit.Engine.Foundation {
|
||||
public interface IFactory<out TProd> {
|
||||
TProd Create();
|
||||
}
|
||||
|
||||
public interface IFactoryDI<out TProd> {
|
||||
TProd Create(DIContext context);
|
||||
}
|
||||
|
||||
public abstract class FactoryAsset<TProd> : ScriptableObject, IFactoryDI<TProd> where TProd : class {
|
||||
public abstract TProd Create(DIContext context);
|
||||
public abstract class FactoryAsset<TProd> : ScriptableObject, IFactory<TProd> where TProd : class {
|
||||
public abstract TProd Create();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user