DragonECS-AutoInjections/src/Attributes/EcsInjectAttribute.cs

17 lines
448 B
C#
Raw Normal View History

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