将以往的代码复制到代码库

This commit is contained in:
于智纯
2025-08-30 17:19:57 +08:00
parent da46e0242d
commit 20ea70bf64
198 changed files with 10075 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
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; }
}
}