Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace DependencyInjection
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Property)]
|
||||
public sealed class InjectAttribute : PropertyAttribute { }
|
||||
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public sealed class RuntimeInjectAttribute : PropertyAttribute { }
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public sealed class ProvideAttribute : PropertyAttribute { }
|
||||
|
||||
/// <summary>
|
||||
/// Marker interface for MonoBehaviours that provide dependencies to the Injector.
|
||||
/// </summary>
|
||||
public interface IDependencyProvider { }
|
||||
}
|
||||
Reference in New Issue
Block a user