feat: add InherentDependencyAttribute, mark PM inherently dependent on IM

This commit is contained in:
goat 2023-02-02 22:57:39 +01:00
parent 4a228f4e3b
commit f40ea4310c
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
5 changed files with 34 additions and 4 deletions

View file

@ -0,0 +1,20 @@
using System;
namespace Dalamud.IoC.Internal;
/// <summary>
/// Mark a class as being dependent on a service, without actually injecting it.
/// </summary>
/// <typeparam name="T">The service to be dependent upon.</typeparam>
[AttributeUsage(AttributeTargets.Class)]
internal class InherentDependencyAttribute<T> : InherentDependencyAttribute where T : IServiceType
{
}
/// <summary>
/// Helper class used for matching. Use the generic version.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
internal class InherentDependencyAttribute : Attribute
{
}