DragonECS-AutoInjections/src/Attributes/AutoInjectAttribute.cs

17 lines
396 B
C#
Raw Normal View History

2023-03-29 16:43:06 +08:00
using System;
namespace DCFApixels.DragonECS
{
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
public sealed class AutoInjectAttribute : Attribute
{
2023-04-05 09:14:42 +08:00
public readonly Type notNullDummyType;
2023-03-29 16:43:06 +08:00
2023-04-05 09:14:42 +08:00
public AutoInjectAttribute(Type notNullDummyType = null)
{
this.notNullDummyType = notNullDummyType;
}
2023-03-29 16:43:06 +08:00
}
}