using System; namespace Serein.Library { /// /// 表示该方法将会生成节点,或是加入到流程运行中 /// 如果是Task类型的返回值,将会自动进行等待 /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)] public sealed class NodeActionAttribute : Attribute { /// /// 节点行为特性构造函数 /// /// /// /// /// public NodeActionAttribute(NodeType methodDynamicType, string methodTips = "", bool scan = true, string lockName = "") { Scan = scan; MethodDynamicType = methodDynamicType; AnotherName = methodTips; LockName = lockName; } /// /// 如果设置为false时将不会生成节点信息 /// public bool Scan; /// /// 类似于注释的效果 /// public string AnotherName; /// /// 标记节点行为 /// public NodeType MethodDynamicType; /// /// 暂无意义 /// public string LockName; /// /// 分组名称,暂无意义 /// public string GroupName; } }