mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-19 02:24:37 +08:00
add DebugNameAttribute
This commit is contained in:
parent
842c83495a
commit
9bc1eb42ab
14
src/Debug/Attributes/DebugNameAttribute.cs
Normal file
14
src/Debug/Attributes/DebugNameAttribute.cs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace DCFApixels.DragonECS
|
||||||
|
{
|
||||||
|
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false, AllowMultiple = true)]
|
||||||
|
public sealed class DebugNameAttribute : Attribute
|
||||||
|
{
|
||||||
|
public readonly string name;
|
||||||
|
public DebugNameAttribute(string name)
|
||||||
|
{
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user