DragonECS/src/DebugUtils/MetaAttributes/MetaNameAttribute.cs

21 lines
592 B
C#
Raw Normal View History

2025-03-14 16:53:25 +08:00
#if DISABLE_DEBUG
#undef DEBUG
#endif
using DCFApixels.DragonECS.Core;
2024-11-01 20:43:15 +08:00
using System;
namespace DCFApixels.DragonECS
{
[AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)]
2024-02-28 02:10:35 +08:00
public sealed class MetaNameAttribute : EcsMetaAttribute
{
public readonly string name;
2024-03-10 01:25:08 +08:00
public readonly bool isHideGeneric;
public MetaNameAttribute(string name, bool isHideGeneric = false)
{
this.name = name;
this.isHideGeneric = isHideGeneric;
}
}
}