Files
2026-07-21 08:56:10 +03:00

20 lines
630 B
C#

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 { }
}