f37369cdda
Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
761 B
C#
31 lines
761 B
C#
using System;
|
|
|
|
namespace HSUI.Config.Attributes
|
|
{
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class SectionAttribute : Attribute
|
|
{
|
|
public string SectionName;
|
|
public bool ForceAllowExport;
|
|
|
|
public SectionAttribute(string name, bool forceAllowExport = false)
|
|
{
|
|
SectionName = name;
|
|
ForceAllowExport = forceAllowExport;
|
|
}
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
|
public class SubSectionAttribute : Attribute
|
|
{
|
|
public string SubSectionName;
|
|
public int Depth;
|
|
|
|
public SubSectionAttribute(string subSectionName, int depth)
|
|
{
|
|
SubSectionName = subSectionName;
|
|
Depth = depth;
|
|
}
|
|
}
|
|
}
|