daily update on 20240628 by nitload youmu
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user