Aimbot-PPO/Aimbot-PPO-MultiScene/Assets/XCharts/Runtime/Internal/Attributes/ComponentHandlerAttribute.cs

23 lines
605 B
C#
Raw Permalink Normal View History

using System;
namespace XCharts.Runtime
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class ComponentHandlerAttribute : Attribute
{
public readonly Type handler;
public readonly bool allowMultiple = true;
public ComponentHandlerAttribute(Type handler)
{
this.handler = handler;
this.allowMultiple = true;
}
public ComponentHandlerAttribute(Type handler, bool allowMultiple)
{
this.handler = handler;
this.allowMultiple = allowMultiple;
}
}
}