Files
Future/Future.Contract/Attributes/InstructionDefine.cs
2025-08-30 17:19:57 +08:00

37 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Future.Contract
{
/// <summary>
/// 用于标记一个“指令”,子类可以继承或是覆盖这个标记
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
internal class InstructionDefineAttribute : Attribute
{
/// <summary>
/// 指令归类,不同的指令归类在指令序列编辑器中有不同的行为
/// </summary>
public EInstructionKind InstKind { get; set; }
/// <summary>
/// 是否允许添加子项?默认=false
/// </summary>
public bool AllowAddChildren { get; set; }
/// <summary>
/// 是否允许添加参数?默认=false
/// </summary>
public bool AllowAddParameter { get; set; }
/// <summary>
/// 是否允许管理参数分组?默认=false
/// </summary>
public bool AllowManageGroup { get; set; }
/// <summary>
/// 可选动态参数分组;使用“|”分割的分组名称,支持中文
/// </summary>
public string ParameterGroups { get; set; }
}
}