daily update on 20240628 by nitload youmu

This commit is contained in:
Nitload
2024-06-28 07:07:09 +08:00
parent 8f9f1c4012
commit 924fe6eef7
30 changed files with 272 additions and 699 deletions
@@ -262,28 +262,11 @@ namespace StgSharp.Logic
#endregion
public static IConvertableToBlueprintNode AsBlueprintNodeMainExecution(this BlueprintNodeMainExecution execution, string name)
{
if (execution == null)
{
throw new ArgumentNullException(nameof(execution));
}
var attributeArray = execution.Method.GetCustomAttributes(typeof(BpNodeActionAttribute), false);
var attri = (BpNodeActionAttribute)attributeArray[0];
if ( attributeArray.Length < 0 || attri == null)
{
throw new InvalidCastException($"Delegate {nameof(execution)} is not marked by {typeof(BpNodeActionAttribute)}");
}
if (attri.OperationSpan <= 1)
{
return new DefaultConvertableToBlueprintNode();
}
return new CrossFrameOperation(
);
}
}//--------------------------------- end of class -----------------------------------
public class BlueprintNodeRunException : Exception
{